linuxpython升级3.5_python环境搭建-Linux系统下python2.6.6升级python3.5.2步骤

[root@template ~]# python -v# /usr/lib64/python2.6/encodings/utf_8.pyc matches /usr/lib64/python2.6/encodings/utf_8.pyimport encodings.utf_8 # precompiled from /usr/lib64/python2.6/encodings/utf_8.pycPython 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

dlopen("/usr/lib64/python2.6/lib-dynload/readline.so", 2);import readline # dynamically loaded from /usr/lib64/python2.6/lib-dynload/readline.so>>> exit()

Python3.5.2官方网站下载地址

https://www.python.org/downloads/source/

~][root@template tools]总用量 20104

-rw-r--r--  1 root root 20566643 6月  26 05:47 Python-3.5.2[root@template tools]总用量 20108-x  16 1000 1000     4096 6月  26 05:38 Python-3.5.2

-rw-r--r--   1 root root 20566643 6月  26 05:47 Python-3.5.2-rwxrwxrwx.  1 root root    13259 5月   8 16:10[root@template tools][root@template Python-3.5.2][root@template Python-3.5.2]make && make installchecking build system type... x86_64-unknown-linux--unknown-linux- --enable- --with-universal- --without-python-///-3.5.2] test  != -f /usr/local/python3/bin/python3-32/usr/local/python3/bin; ln -s python3.5-32 python3-32-f /usr/local/python3/share/man/man1/python3.1/usr/local/python3/share/man/man1; ln -s python3.5.1 python3.1 test  != =|*) ensurepip=/python -E ---root=/8.1.1 requires SSL/-3.5.2][root@template Python-3.5.2][root@template Python-3.5.2][root@template Python-3.5.2]Python 3.5.2 (default, Aug  2 2016, 11:35:064.4.7 20120313 (Red Hat 4.4.7-11, ,    >>> exit()     /usr/bin/[root@template Python-3.5.2]Python 3.5.2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值