On my Fedora11 machine on which python2.6 is installed, I was able to successfully install python 2.7 by following these steps:
wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
tar -xvjf Python-2.7.tar.bz2
cd Python*
./configure --prefix=/opt/python27
make
make install
vi ~/.bash_profile
source ~/.bash_profile
echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
ldconfig
However, when I checked the python version the system uses via terminal (python -V), it still shows python 2.6.
How can I use python2.7 as my python by default? Or, if possible, how to remove python2.6?
Thanks in advance!
source
share