centos7安装python3.7.3

Posted mkxfs

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7安装python3.7.3相关的知识,希望对你有一定的参考价值。

yum install gcc zlib  zlib-devel libffi-devel -y

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

tar -zxvf Python-3.7.3.tgz

cd Python-3.7.3/

./configure prefix=/usr/local/python3

make && make install

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

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

以上是关于centos7安装python3.7.3的主要内容,如果未能解决你的问题,请参考以下文章

Centos7升级Python2到Python3

Python3.7.3安装(Win10)

python3.7.3安装

centos7下Python和python3共存

ubuntu14.04上编译安装python3.7.3

Python3.7.3安装TensorFlow和OpenCV3