linux中python2.6升级2.7-成都快上网建站

linux中python2.6升级2.7

查看版本

[root@localhost Python-2.7.8]# python
Python 2.6.6 (r266:84292, Aug 18 2016, 14:53:48) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
  • 操作:
  • wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgz

    tar -zxvf Python-2.7.8.tar.bz2

    ./configure --prefix=/usr/local/python27

    make && make install

mv /usr/bin/python /usr/bin/python_old

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

检查

[root@localhost Python-2.7.8]# python
Python 2.7.8 (default, Jan  3 2018, 20:47:59) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

分享题目:linux中python2.6升级2.7
文章出自:http://kswjz.com/article/iecdes.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流