Reputation: 193
I tried to update the libxml2 & libxslt packages as mine are too old to run with lxml. I found a walkthrough here and tried to update the package with the command
sudo python setup.py install
but what I got was 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 apparently there is no setup.py file in my Python folder (this is my current Python version, I already checked this!). How is this possible? Hope someone can help me!
Upvotes: 8
Views: 36219
Reputation: 92657
To make this a formal answer from my comment...
setup.py is not part of the python installation location. It is included with the package that you wish to install. Change directories to the location of the source that you downloaded and then run the setup.py file.
Upvotes: 13