[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
转载于:https://blog.51cto.com/devin223/1907548