Is there a Python Version Manager?

Diez B. Roggisch deets at web.de
Mon Oct 4 08:28:59 EDT 2010


TerryP <bigboss1964 at gmail.com> writes:

> On Oct 4, 4:12 am, Kushal Kumaran <kushal.kumaran+pyt... at gmail.com>
> wrote:
>> Is virtualenv what you need?
>>
>> http://pypi.python.org/pypi/virtualenv
>>
>> > <snip>
>>
>> --
>> regards,
>> kushal
>
>
> Not quite. It basically amounts to a UNIX version of xcopy'ing an
> existing Python installation.
>
>   ... install Python X.Y by any means
>   python virtualenv.py -p=X.Y whereToStoreFiles  # clone existing
> Python X.Y install
>   python virtualenv.py --relocatable whereToStoreFiles  # make xcopy/
> tar friendly
>   . whereToStoreFiles/bin/activate
>   python file.py args  # run using whereToStoreFiles/bin/python cloned
> by above
>   ... rinse and repeat for each X.Y
>
> versus
>
>   . ./path/to/rvm/script
>   rvm install 1.8.7,1.9.2,rbx       # fetch and install Ruby 1.8.7,
> 1.9.2, and Rubinius in rvm root
>   rvm 1.9.2 some-ruby-command args  # run using Ruby 1.9.2.

python2.5

>   rvm 1.8.7 some-other-rbcmd args   # run using Ruby 1.8.7

python2.4

>   rvm --default rbx                 # set default ruby for this shell

alias python=python2.5

>   ruby file.rb args                 # use rubininus as ruby
>   ruby system                       # use systems ruby instead

/usr/bin/python

>   ruby file.rb args                 # ^


Diez



More information about the Python-list mailing list