python2.6升级至python3.6

2019-10-30  本文已影响0人  夏2018

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz

tar xf Python-3.6.3.tgz

cd Python-3.6.3

yum install gcc glibc zlib-devel openssl-devel -y

./configure

make && make install

mv /usr/bin/python /usr/bin/python2.6.6

ln -s /usr/local/bin/python3 /usr/bin/python

vim /usr/bin/yum 把python改成python2.6.6

wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9

tar zxf pip-9.0.1.tar.gz

cd pip-9.0.1

python setup.py install

上一篇下一篇

猜你喜欢

热点阅读