Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
ettings\User\build\pycurl
Storing complete log in C:\Documents and Settings\User\Application Data\pip\pi
p.log
like image 549
mrgloom Avatar asked Mar 31 '14 06:03

mrgloom


People also ask

How do I install an older version of a python package?

How do I Install a Specific Version of a Python Package? To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1. 3 .

What is Pycurl used for?

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features.


2 Answers

Following the steps one mentioned above, solved my problem.

sudo apt install libcurl4-gnutls-dev librtmp-dev

pip install pycurl
like image 59
r0m Avatar answered Sep 22 '22 04:09

r0m


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 :

  1. install libcurl4-gnutls-dev librtmp-dev packages
  2. pip install pycurl

Worked the same in Linux

like image 21
dlewin Avatar answered Sep 18 '22 04:09

dlewin