Linux Source compiled Python 3.6
1. Operating system and version display
# UNAME-SR
Linux 3.10.0-514.el7.x86_64
# UNAME-SR
Linux 3.10.0-514.el7.x86_64
2. Download the Python installation package
# wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.6.1/PYTHON-3.6.1.TAR.XZ
3. Start the compilation installation Python
3.1 Extracting Python
# TAR-XF PYTHON-3.6.1.TAR.XZ
3.2 Getting Help
# CD PYTHON-3.6.1/
# Cat Readme.rst
3.3 Viewing the compiled parameters
#./configure--help
3.4 Start compiling
# yuminstall-y Gccgcc-c++
#./configure--prefix=/usr/local/python-3.6
# Make && Makeinstall
3.5 Testing
[Email protected] python-3.6.1]#/usr/local/python-3.6/bin/python3.6
Python 3.6.1 (default, May 102017, 08:59:54)
[GCC 4.8.520150623 (Red hat4.8.5-11)] on Linux
Type "Help", "copyright", "credits" or "license" formore information.
>>>
4. Errors and Workarounds
The following information appears during the make install and the installation is terminated.
Zipimport. Zipimporterror:can ' t decompress data; Zlib Not available
Workaround:
# yuminstall-y Zlib Zlib-devel
Linux installation python 3.5.2 http://www.linuxidc.com/Linux/2017-10/147579.htm
Install VIM8 under Ubuntu 16.04 and support Python3 http://www.linuxidc.com/Linux/2017-09/147108.htm
Python decorator, iterator, and generator http://www.linuxidc.com/Linux/2017-07/145883.htm
Understanding Python Decorator Http://www.linuxidc.com/Linux/2017-08/146312.htm
Python programming: From getting started to practicing ultra-clear PDF full version + source code http://www.linuxidc.com/Linux/2017-06/145208.htm
This article permanently updates the link address: http://www.linuxidc.com/Linux/2017-10/147891.htm
Linux Source compiled Python 3.6