我的Fedora11机器上装有Python2.6 的预装设备, 我成功地安装了python 2.7, 使用了以下步骤:
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
## replaced PATH=$PATH:$HOME/bin
## with PATH=$PATH:$HOME/bin:/opt/python27/bin
## reload .bash_profile
source ~/.bash_profile
echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
ldconfig
然而,当我检查Python版本时,该系统通过终端(python-V)使用,仍然显示python2.6。
How will I make the system use python2.7 as its default python? Or if possible, how will I uninstall python2.6?
提前感谢!