- 下载安装包.tgz
- tar -zxvf Python
- cd P..
- ./configure
- make
- sudo make install
- 通过 /usr/local/bin/python -V 查看版本号
以下代码有问题:
- sudo rm /usr/bin/python
- sudo ln -s /usr/include/python2.7 /usr/bin/python
改为:
Upgrade Python in Ubuntu
原文:http://www.cnblogs.com/keep-walking/p/4216672.html