Install python3.8 under centos 7

1. Download the installation package: #wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz
2. Unzip: #tar zxvf Python-3.8.7
3. Execute./ Configure operation to check the environment. #./configure --prefix=/usr/local/python3.8.7 (specify python installation path)
4. Execute make this operation #make (compile)
5. Install: #make install (error: zlib not available solution: # yum install zlib-devel)
Verify the installation result: #cd /usr/local/pyhton3.8.7 # cd bin (Enter the bin directory) # ./python3.8 (Run python3.8) "Ctrl+D" to exit.

Guess you like

Origin blog.51cto.com/12772149/2597779