I am trying to install setuptools. When I run "sh setuptools-0.6c9-py2.4.egg", I get the following message:
Permission denied: '/usr/lib/python2.4/site-packages/test-easy-install-26338.write-test'
Expected since I do not have root privileges. Some, as I came up with the idea of creating a "virtual" Python.
I download "virtual-python.py" and run it using Python for the entire site. It creates the subdirectories "lib", "bin" and "include" in my home directory. At the end of the output of "virtual-python.py", I see the following message:
Now you are ready to download ez_setup.py and run / home / myname / bin / python ez_setup.py
I download this file and run it. But how do I get the same error message:
Permission denied: '/usr/lib/python2.4/site-packages/test-easy-install-925.write-test'
OK I use the "prefix" to force ez_setup.py to write to the local directory:
/home/myname/bin/python ez_setup.py
And then I get:
- You can configure the installation directory to support ".pth" files using one of the approaches described here:
http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations
So, I am redirected to the same page as before. So, I do not know what to do now.
I have another hint:
- You can add the installation directory to the PYTHONPATH environment variable. (Then it should also be on PYTHONPATH whenever you start Python and want to use the package you install.)
But if I print:
PYTHONPATH=/home/myname/lib/python2.4/site-packages
I still get the same result that Python does not see environment variables.
Can anyone please help me with this?
source share