Can't install pycurl with pip

Can't install pycurl with pip, win xp x32, python 2.7.

here is the log

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
ettingsUserbuildpycurl
Storing complete log in C:Documents and SettingsUserApplication Datapippi
p.log

I had the same problem. I was able to install it with easy_install instead:

easy_install pycurl

For easy_install, see setuptools.


This is a problem indeed. No need to update pip or easy install as it's often advised, well it won't hurt to update but you will still have the problem until you :

  • install libcurl4-gnutls-dev librtmp-dev packages
  • pip install pycurl
  • Worked the same in Linux


    So has said by Hai Vu you need to install cURL first. Here is the dowload page : http://curl.haxx.se/download.html I suggest you install it in your C:/ directory, or if you already installed it elsewhere copye the curl.exe file to your c:/

    When done, you can try it by going to the cmd prompt :

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

    If it works then curl is correctly installed and you can install pycurl with pip.

    链接地址: http://www.djcxy.com/p/19668.html

    上一篇: Json.net反序列化MVC4中的循环引用json

    下一篇: 无法用pip安装pycurl