Is there a Python Version Manager?

TerryP bigboss1964 at gmail.com
Mon Oct 4 01:15:18 EDT 2010


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.
  rvm 1.8.7 some-other-rbcmd args   # run using Ruby 1.8.7
  rvm --default rbx                 # set default ruby for this shell
  ruby file.rb args                 # use rubininus as ruby
  ruby system                       # use systems ruby instead
  ruby file.rb args                 # ^



More information about the Python-list mailing list