Install Python environment under Linux __linux

Source: Internet
Author: User
Tags install openssl openssl

1. Install Python3 under Linux

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

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

2 Download Python3.5 Code pack

wget  Https://www.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

Tar jxvf  python-3.5.0.tar.xz
cd Python-3.5.0
./configure--prefix=/usr/local/python3 make
& & Make Install

Make a soft chain:

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:

Yum Install Openssl-devel

(OpenSSL installed under Ubuntu 14.04)

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.

Make a soft chain:

Ln-s/usr/local/python3/bin/pip3.5/usr/local/bin/pip
Ln-s/usr/local/python3/bin/easy_install/usr/local/bin/easy_install

Upgrade PIP to latest version:

Pip Install--upgrade pip

PIP installation succeeded.

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.