Centos- installation py3

# 1 install dependencies
yum install gcc OpenSSL-devel bzip2-devel expat-devel gdbm-devel readline-devel SQLite-devel libffi-devel tk-devel curl-devel wget
# wget download link 2
cd / tmp
wget HTTPS: // the WWW. python.org/ftp/python/3.7.4/Python-3.7.4.tgz
#. 3 tgz packages extracting
the tar-3.7.4.tgz -zxvf the Python
#. 4 compiler installation
CD the Python-3.7.4
./configure prefix = / usr / local / python3
the make && the make install
# 5 create a soft link
LN -s / usr / local / python3 / bin / python3 / usr / bin / python3
LN -s / usr / local / python3 / bin / PIP3 / usr / bin / pip3

Guess you like

Origin www.cnblogs.com/kylingx/p/11616887.html