2014-03-31 9 views
7

Kann pycurl mit pip nicht installieren, win xp x32, python 2.7.Kann pycurl mit pip nicht installieren

hier ist das Protokoll

pip install pycurl 
Downloading/unpacking pycurl 
    Downloading pycurl-7.19.3.1.tar.gz (116Kb): 116Kb downloaded 
    Running setup.py egg_info for package pycurl 
    Please specify --curl-dir=/path/to/built/libcurl 
    Complete output from command python setup.py egg_info: 
    Please specify --curl-dir=/path/to/built/libcurl 

---------------------------------------- 
Command python setup.py egg_info failed with error code 10 in C:\Documents and S 
ettings\User\build\pycurl 
Storing complete log in C:\Documents and Settings\User\Application Data\pip\pi 
p.log 
+0

Haben Sie den --curl-dir geben? Wie das Protokoll sagte "Bitte angeben - Curl-Verzeichnis =/Pfad/zu/Built/Libcurl" – Cody

+0

Da Sie auf Windows sind, müssen Sie cURL vor pycurl installieren: http://StackOverflow.com/questions/507927/How -do-i-install-pycurl –

+1

http://www.lfd.uci.edu/~gohlke/pythonlibs/ –

Antwort

-3

So von Hai Vu gesagt hat, müssen Sie cURL zuerst installieren. Hier ist die dowload Seite: http://curl.haxx.se/download.html Ich schlage vor, Sie es in Ihrem C installieren:/Verzeichnis, oder wenn Sie bereits installiert es an anderer Stelle copye die curl.exe Datei auf Ihrem c:/

Wenn Sie fertig sind, können Sie es versuchen indem Sie auf die cmd-Prompt:

cd c:/ 
curl "your-curl-request" 

Wenn es dann curl funktioniert korrekt installiert ist, und Sie können pycurl mit pip installieren.

+2

Downvoting, weil dies 1) nicht funktioniert 2) Putting ausführbare Dateien in das System-Laufwerk Root ist schrecklich Rat. –

+0

Ich habe das gleiche ungelöste Problem hier ... :( – bodruk

5

Ich hatte das gleiche Problem. Ich konnte es mit easy_install anstatt installieren:

easy_install pycurl 

Für easy_install finden setuptools.

0

Das ist in der Tat ein Problem. Keine Notwendigkeit zu aktualisieren pip oder einfach zu installieren, wie es oft ist ratsam, es nicht zu aktualisieren und verletzt wird, aber Sie werden immer noch das Problem, bis Sie:

  1. libcurl4-gnutls-dev librtmp-dev-Pakete
  2. installieren pycurl

Arbeitete das gleiche in Linux installieren pip