Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 340
julianschnell Avatar asked Nov 18 '12 19:11

julianschnell


1 Answers

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.

like image 133
jdi Avatar answered Sep 19 '22 07:09

jdi