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:?
Pyquery package:?
Pymysql package:?
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