Python: setup.py missing: no such file or directory

I tried updating the libxml2 and libxslt packages, since mine is too old to work with lxml. I found a walkthrough here and tried to update the package with the command

sudo python setup.py install 

but I got this error message:

 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS /Python: can't open file 'setup.py': [Errno 2] No such file or directory 

So there seems to be no setup.py file in my Python folder (this is my current version of Python, I already checked this!). How is this possible? Hope someone can help me!

+7
source share
1 answer

To make this a formal answer from my comment ...

setup.py is not part of the python installation location. It is included in the kit that you want to install. Change the directories to the location of the source you downloaded, and then run setup.py.

+12
source

All Articles