码迷,mamicode.com
首页 > 编程语言 > 详细

python2.7 升级到 python3.6

时间:2020-12-18 12:33:36      阅读:2      评论:0      收藏:0      [点我收藏+]

标签:--   load   mkdir   local   config   nss   curses   zlib   python2   

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-develxz-devel gcc
 mkdir /usr/download
cd  /usr/download
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
 tar -xvf Python-3.6.4.tgz
 mkdir /usr/local/python3
cd Python-3.6.4

 ./configure --prefix=/usr/local/python3
make
make  install
 ln -s /usr/local/python3/bin/python3 /usr/bin/python
mv /usr/bin/python /usr/bin/python_bak
 ln -s /usr/local/python3/bin/python3 /usr/local/bin/python
[root@do1cloud03 ~]# python

python2.7 升级到 python3.6

标签:--   load   mkdir   local   config   nss   curses   zlib   python2   

原文地址:https://www.cnblogs.com/lixiuran/p/14128313.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!