[Distutils] Questions about virtual-python on ubuntu

David Lyon david.lyon at preisshare.net
Wed Jul 15 05:29:29 CEST 2009


Hi All,

I'm trying to find a way to install packages on ubuntu as a normal user.

Being from windows but knowing some unix maybe I don't know all the python
tricks..

So I try this...

http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python

It all runs ok and I get this.. at the bottom...

You're now ready to download ez_setup.py, and run
/home/dlyon/bin/python ez_setup.py

So I do that... and get a whole lot of errors....

I don't want to go su... the whole point is not to... what am I
doing wrong?

--------------------------------------------------------------------------
dlyon at ubuntu-8:~/Desktop$ python ez_setup.py
Downloading
http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied:
'/usr/lib/python2.5/site-packages/test-easy-install-5325.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/lib/python2.5/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.





More information about the Distutils-SIG mailing list