Ubuntu升级Python2.7到最新版本

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes-python2.7
如果报错:add-apt-repository: command not found
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
然后可以继续运行以下两条命令
sudo apt-get update
sudo apt-get upgrade

你可能感兴趣的:(Ubuntu升级Python2.7到最新版本)