Monday, August 31, 2015

Python + pkg_resources.DistributionNotFound:

This usually occurs if your python setuptools are old version. I tried upgrading them and the errors are gone :)

pip install --upgrade setuptools

For those who want the latest stable version use the above command or you can try yum to install python-setuptools

Hope it helps! 

error: Python.h: No such file or directory

Okay guys so I was trying to install locust using pip and the installation was failing due to the following error.

"error: Python.h: No such file or directory"

Found out that the python devel package was not installed and hence the error. So I installed the devel package and voila.. things were back on track :)

So in general if you find that something.h file is missing or not found, it usually means that the devel packages are not installed.

#yum install python-devel

Hope this helps someone :)