Friday, 13 April 2012

How do you keep different versions of Python on a Linux server?

Needed 2.7.2
This was what I did ...
wondering if there's a better solution.

copy to ~/Python27

./configuremake make test

didn’t run make install (copies to the default dir?)

needed then to install a python library ..

Then run the script. For example, to install under your home directory:
$ export PYTHONPATH=$HOME/lib/python
$ python install --home=$HOME
This will install package the code up in a python egg that is installed in $HOME/lib/python, and install wrapper scripts for all the tools into $HOME/bin.



  1. I think Pythonbrew is awesome for this:

  2. I would use make altinstall and create a different enviroment to use python2.7 everytime I would really need need with virtualenvwrapper.


Datanami, Woe be me