Linux Source compiled Python 3.6

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.