I’m using Centos 7 and Python 2.7.5. The problem is when I install Pandas, i got this error message
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-21ft0H/pandas
I already tried a lot of solutions but no success even yum -y update
.
- Can’t install via pip because of egg_info error
- Python pip install fails: invalid command egg_info
- https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
- pip fails to install anything, error: invalid command ‘egg_info’
Advertisement
Answer
I already found the answer. I need to install python 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