two versions of python on one host
Translation of the original in Catalan. Read it in: CatalàCastellano
Sometimes you have to do some strange trick with python, for example having to have two versions installed. Often our distribution will already ship one version of it and, besides, many tools of the distributions usually depend on that version, which is better not to break.
Cookbook of commands to install a python 2.6.5 in addition to the 2.4.3 the host already had:
cd /var/tmp
wget http://python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2
tar xvfj Python-2.6.5.tar.bz2
cd Python-2.6.5
./configure --prefix=/usr
make
make altinstall
if we now do:
# python -V
Python 2.4.3
# python2.4 -V
Python 2.4.3
# python2.6 -V
Python 2.6.51 comment
Comments from the old blog, as they were written. Comments are closed.
brainstorm
Doncs fa poc he hagut d'instal·lar una versió més nova de python a DH, i trobo que el "virtualenv" de python está bastant aconseguit com alternativa al que comentes...
http://blog.emson.co.uk/2010/04/how-to-install-python-on-dreamhost-shared-hosting/