ubuntu中 python升级2.7最新版且使用OpenSSL包

ubuntu14自带python为2.7.6要升级最新版执行以下操作

sudo add-apt-repository ppa:fkrull/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

升级后pip install OpenSSL

如果是不是python2.7.7以上版本会提示兼容问题

猜你喜欢

转载自blog.csdn.net/u010145988/article/details/105513521