CentOS编译安装Python3.6.4

前端之家收集整理的这篇文章主要介绍了CentOS编译安装Python3.6.4前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1.获取编译包:

wgethttps://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
wgethttp://mirrors.sohu.com/python/3.6.4/Python-3.6.4.tgz

2.解压:

tar-zxvfPython-3.6.4.tgz

3.移动到安装目录

mvPython-3.6.4/usr/local

4.进入目录:

cd/usr/local/Python-3.6.4

5.编译安装:

./configure
make
makeinstall

6.软链接

ln-s/usr/local/bin/python3.6/usr/bin/python3

大功告成:

python3-V
原文链接:https://www.f2er.com/centos/374853.html

猜你在找的CentOS相关文章