the correct way to install python packages as non root user in non default path
news123 at free.fr
Tue Apr 21 23:09:15 CEST 2009
easy_install without 'install' works better :-) .
As as you indicated: Virtualenv installs cleanly in a separate directory
So I removed the --prefix option and installed it in the default path.
By the way: Adding the word 'install' wasn't inspired by apt-get, but by
"python ./setup.py", which also seems to want a 'command'
Diez B. Roggisch wrote:
> News123 wrote:
>> 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
> Just because apt-get uses "install" as command doesn't mean everything else
> does. And easy_install is one of those which doesn't. Remove the "install",
> and things should work.
> Additionally, I don't see any problem with installing virtualenv into the
> system-python. It's an addon, not a replacement, thus it shouldn't collide
> with package management (unless you are going to remove python)
More information about the Python-list