CentOS7安装Python3
发表在《笔记》, 0 条评论。

CentOS7安装Python3

发表在《笔记》, 0 条评论。

安装必备软件包:

yum install -y openssl-devel zlib-devel libffi-devel readline-devel

继续安装Python3

wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz

tar -xvf Python-3.7.2.tgz 
cd Python-3.7.2/

./configure --prefix=/usr/local/python3 --enable-optimizations

make
make install

ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
评论