What is the best way to upgrade python?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Mar 8 17:47:22 EST 2007


yinglcs at gmail.com a écrit :
> Hi,
> 
> i am using red hat enterprise 4. It has python 2.3 installed. What is
> the best way to upgrade to python 2.4?
> 
> I think one way is to compile python 2.4 from the source, but I can't
> remove the old one since when i do 'rpm -e python', i get error like
> 'failed dependencies'.

Not really a python-related problem by itself, but anyway: you probably 
have other packages depending on this version of Python, so better to 
keep it. Now nothing prevents you from having multiple Python versions. 
Just build from sources (preferably giving /usr/local as prefix to 
./configure since it's not the 'system' version), and install in a 
different location (IIRC there's a make altinstall rule - anyway all 
this is documented in the source directory).




More information about the Python-list mailing list