python – Cannot access setup.py: No such file or directory – cant run any .py files?

python – Cannot access setup.py: No such file or directory – cant run any .py files?

When you run python setup.py that requires the setup.py file to be in the current directory.

You can control the current directory with the cd command.

So:

cd /home/acacia/Python-3.3.0/PySwip/pyswip-0.2.3
python setup.py install

I have no knowledge about Elementary OS but you could try to use the full path of the setup.py.

python /home/acacia/Python-3.3.0/PySwip/pyswip-0.2.3/setup.py install

[EDIT] Cant answer comments, so I just added the install parameter in my answer

python – Cannot access setup.py: No such file or directory – cant run any .py files?

You need to go into the directory that you are going to setup. For example, if you are installing numpy, and you have git-cloned it, then it probably is located at ~/numpy. So first cd into ~/numpy, and the type the commend like python setup.py build there.

Leave a Reply

Your email address will not be published.