Reputation: 567
I am using python 2.7.11 and I have downloaded setuptools-2.2 for its included setup.py
file. Then I did a python setup.py install
(This command is successful), and I added the path for this setup.py
file to ~/.bash_profile
.
export PATH=/opt/python2711/lib/python2.7/site-packages/:$PATH
export PATH=/path-to-setuptools/setuptools-2.2/:$PATH
However, when I tried to install another software (./pybombs install uhd), my computer kept complaining:
Build failed. Re-trying with reduced makewidth and higher verbosity.
python: can't open file 'setup.py': [Errno 2] No such file or directory
I actually tried to add the path of that egg file as well, but it couldn't help either. I don't know much about this setup.py
file. Could somebody point out how to fix this compiling error?
Thanks in advance!
Upvotes: 3
Views: 420
Reputation: 777
add your path in ~/.profile
export PATH=$PATH:/path/to/dir
~/.profile: executed by the command interpreter for login shells.
/etc/environment
: file open and add the path here you should log in as root
Upvotes: 1