Python3.6.6源码包链接:
链接:https://pan.baidu.com/s/1SvMWBDBBk03ByzO2yvyMfw
提取码:9527
操作系统:Centos7.9
[root@localhost ~]# yum install openssl openssl-devel -y
[root@localhost Python-3.6.6]# ./configure --prefix=/usr/local/python3.6
[root@localhost Python-3.6.6]# make && make install
[root@localhost Python-3.6.6]# ln -s /usr/local/python3.6/bin/python3.6 /usr/bin/python3
[root@localhost Python-3.6.6]# vim /etc/profile
PATH=/usr/local/python3.6/bin/:$PATH
export PATH
[root@localhost Python-3.6.6]# source /etc/profile
[root@localhost Python-3.6.6]# python3 -V
Python 3.6.6
缺少gcc
yum install -y gcc