python v 2.7.3
默认情况下,Ubuntu 12.04附带。我想将其升级到v 2.7.5
。我尝试了此问题中给出的说明,
sudo apt-get install build-essential
sudo apt-get install libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
cd ~/Downloads/
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
tar -xvf Python-2.7.5.tgz
cd Python-2.7.5
./configure
make
sudo make altinstall
最后一条命令失败,并显示以下错误:
...
Compiling /usr/local/lib/python2.7/xmlrpclib.py ...
Compiling /usr/local/lib/python2.7/zipfile.py ...
make: *** [libinstall] Error 1
我该如何升级?
sudo make **install**
而不是跑步时会发生什么sudo make **altinstall**
?你得到同样的错误吗?