Python2.7 Centos安装

yum install libxslt-devel libffi libffi-devel python-devel gcc openssl openssl-devel sqlite-devel

wget http://python.org/ftp/python/2.7.15/Python-2.7.15.tgz

tar xvf Python-2.7.15.tgz

cd Python-2.7.15

./configure --prefix=/usr/local/python27 --enable-unicode=ucs4 --enable-shared

make -j8

make install -j8

ln -s /usr/local/python27/bin/python2.7 /usr/bin/python27

wget -q https://bootstrap.pypa.io/get-pip.py

python27 get-pip.py

ln -s /usr/local/python27/bin/pip2.7 /usr/bin/pip27

 

 

参考文献:

https://blog.csdn.net/dawningblue/article/details/60142536

posted @ 2018-08-10 16:57  jhc888007  阅读(125)  评论(0编辑  收藏  举报