CentOS Installation python3.x FAQs

Source: Internet
Author: User

The python version of CentOS 6.x comes with 2.6,centos 7. X comes with 2.7, we have to install python3.x, configure the environment, but the general installation process will not be smooth sailing, often some error, in CentOS and other Linux systems encountered installation package installation errors, most of them are due to the lack of dependent packages caused by the need to handle, the following is the installation of PY Thon3 commonly encountered problems:

First, question 1:
    1. Checking MACHDEP ... Linux
    2. Checking for--WITHOUT-GCC ... no
    3. Checking for--WITH-ICC ... no
    4. Checking for gcc ... no
    5. Checking for cc ... No
    6. Checking for cl.exe ... no
    7. Configure:error:in '/usr/local/python3/python-3.6.5 ':
    8. Configure:error:no acceptable C compiler found in $PATH
    9. See ' Config.log ' for more details

The above error prompt indicates that there is a lack of GCC compilation environment in this machine, 2 ways to solve the problem

1. Install GCC compilation environment via Yum: Yum install-y gcc

2, the machine does not install the Yum feature, can download the GCC installation package: https://gcc.gnu.org/

After completion, re-execute the command to add the configuration:./configure--prefix=/usr/local/pthon3

And then execute the command: Make

Ii. Question 2:

Execute command: Make may have the following error prompt: Zipimport. Zipimporterror:can ' t decompress data; Zlib not available Make: * * [Install] Error 1 indicates that the system is missing zlib related toolkit caused by the problem, then we only need to install the dependent package,

Workaround: Open terminal, enter command to install zlib dependent packages

Yum-y Install zlib*

  Continue execution after completion: make install.

CentOS Installation python3.x FAQs

Related Article

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.