Skip to content Skip to sidebar Skip to footer

Python Pip Install Failing With Error Code 1

I am working on CentOS6 and have been able to install python2.7. After creating a virtualenv I have started installing various packages of python. I can install some packages easil

Solution 1:

You need a libcurl development library. Get it with yum:

yum install libcurl-devel

EDIT: After you installed it, you appear to have some missing dependencies, still. You need Python development library, get it with yum as follows:

yum install python-devel

If the installation above doesn't work, try rpm instead by download this Python-devel RPM for CentOS. Then install it via rpm:

rpm -ivh python-devel-2.7.5-18.el7_1.1.x86_64.rpm

Solution 2:

Debian or Ubuntu derived distributions:

apt-get install build-essential libssl-dev libffi-dev python-dev 

Followed by:

pip install cryptography

Red Hat derived distributions:

yum install gcc openssl-devel libffi-devel python-devel 

Followed by:

pip install cryptograph

Solution 3:

You need install libcurl development package of your Linux distribution which provides curl libraries and header files.

Go through all "curl" packages for CentOS and you should find the right one.

Solution 4:

The problem can be with missing dependencies for pycurl. Here is my answer to similar question which worked for me. Check it here

Solution 5:

For me , I installed all the dependencies

  1. pip install --upgrade setuptools
  2. sudo yum install gcc
  3. yum install python-devel
  4. yum install libcurl-devel

After installing above , I was getting the same error , then i upgraded pip previously i was using 7.0.1 then i upgraded to 9.0.1 and it worked for me.

pip install --upgrade pip

Post a Comment for "Python Pip Install Failing With Error Code 1"