Python – Command “python setup.py egg_info” failed with error code 1 /tmp/pip-build-21ft0H/pandas

Here is the solution how to fix the error when you trying to install Pandas

Python - Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-21ft0H/pandas

First you need to uninstall all the Pythons (I knew it’s a bad idea but it works).

yum remove python

Then install python 2.7.10 using these commands.

wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar -xvzf Python-2.7.10.tgz
cd Python-2.7.10
make install

Make sure your python 2.7.10 installed in your system.

python -V

After that you need to install python 2.7.5 via RPM.

rpm -i ftp://195.220.108.108/linux/centos/7.1.1503/updates/x86_64/Packages/python-2.7.5-18.el7_1.1.x86_64.rpm

Install Pandas package via pip

sudo pip install pandas
sudo pip install pandas.

sudo pip install pandas.

Voila!! It’s done!!

4 thoughts on “Python – Command “python setup.py egg_info” failed with error code 1 /tmp/pip-build-21ft0H/pandas

Leave a Reply

Your email address will not be published. Required fields are marked *