CentOSインストールpython 3環境

2135 ワード

CentOS7.4 python 3環境のインストール(Python 3.8.1)(stable version,Dec.18,2019)
# 1.     Python 3.8.1 - Dec. 18, 2019 [stable version]
[root@VM_235_47_centos ~]# wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz

# 2.   /usr/local
[root@VM_235_47_centos ~]# tar -xvf Python-3.8.1.tar.xz -C /usr/local

# 3.  Makefile
[root@VM_235_47_centos ~]# cd /usr/local/Python-3.8.1
[root@VM_235_47_centos Python-3.8.1]# ./configure

# 4.    
[root@VM_235_47_centos Python-3.8.1]# make -j 8 && make install

# 5.         
[root@VM_235_47_centos Python-3.8.1]# python3 --version
Python 3.8.1