centos 安装 python2.7

刘悦 at 
一般 centos 系统自带的 Python 是 2.6.6 版本,由于版本太老有些好用的模块及功能需要 Python2.7 才支持。简单写一下如何升级 Python2.6 到 Python2.7 并能同步使用 pip,以及通过 pip 安装 Django。踩过不少坑,总结了下,按下面步骤逐步安装不然会有报错。1、安装 opensslopenssl-devel 如果没安装后面用 pip 安装软件包的时候可能会提示错误“pipisconfiguredwithlocationsthatrequireTLS/SSL,howeverthesslmoduleinPythonisnotavail”yum-……