Install Python3__linux under Linux

Source: Internet
Author: User

1. Install Python3 under Linux

A, prepare the compilation environment (if the environment is not correct, you may encounter a variety of problems, such as wget can not download https linked files)?

1 2 3 Yum Groupinstall "Development Tools" yum install zlib-devel bzip2-devel openssl-devel ncurses-devel

2 Download Python3.5 code pack ?

1 wget https: PYTHON.ORG/FTP/PYTHON/3.5.0/python-3.5.0. Tar. XZ

In the installation package, there is a readme file, which has written how to install?

1 2 3 4 Tar jxvf Python-3.5.0. Tar. XZ CD Python-3.5.0. /configure--prefix=/usr/local/python3 make && make install

Do the soft chain:?

1 Ln-s/usr/local/python3/bin/python3.5/usr/local/bin/python3

The installation was successful.

If prompted: Ignoring Ensurepip Failure:pip 7.1.2 requires SSL/TLS

This is the reason for not installing or upgrading OENSSL:?

1 Yum Install Openssl-devel

Repeat the compilation scheme again python3.5:

The final is as follows:

Prompts to successfully install pip-7.12 and setuptools at the same time.

Both PIP3 and PIP hint that there is no error.

Do the soft chain:?

1 Ln-s/USR/LOCAL/PYTHON3/BIN/PIP3.5/usr/local/bin/pip

Upgrade PIP to latest version:?

1 Pip Install--upgrade pip

PIP installation succeeded.

Note:--no-check-certificate means "Do not check the certificate" when installing, and does not add may not be able to install.

2. Installation package

Requests Package:?

1 PIP Install requests

Pyquery package:?

1 Pip Install Pyquery

Pymysql package:?

1 Pip Install Pymysql

The above is the entire content of this article, I hope to help you learn, but also hope that we support the script home.

Original link: http://www.cnblogs.com/feng18/p/5854912.html

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.