the correct way to install python packages as non root user in non default path

News123 news123 at free.fr
Tue Apr 21 10:54:13 CEST 2009


Hi Alex,


Thanks a lot. Reading the description this sounds to be the right thing.


But now I'm stuck installing virtualenv as a user as this seems to be no
ubunbtu package:


export PYTHONPATH=/opt/newpymod/lib/python2.5/site-packages
mkdir -p $PYTHONPATH
easy_install --prefix /opt/newpymod install virtualenv

> Creating /opt/newpymod/lib/python2.5/site-packages/site.py
> Searching for install
> Reading http://pypi.python.org/simple/install/
> Couldn't find index page for 'install' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Reading http://pypi.python.org/simple/
> No local packages or download links found for install
> error: Could not find suitable distribution for Requirement.parse('install')


So back to question 1 :-(
How do I install non Ubuntu python packages in a local directory?



alex23 wrote:
> On Apr 21, 8:32 am, News123 <news... at free.fr> wrote:
>> I'm having an Ubuntu host, but want to (experimentally)
>> install some modules, which are newer than the Ubuntu ones
>> (distros lag always a little behind and some tools need newer versions.)
>>
>> What would be a clean way to do this?
> 
> I think virtualenv will help you here: http://pypi.python.org/pypi/virtualenv
> 
> 



More information about the Python-list mailing list