centos7.5编译安装python3.7.2
#首先安装python3.7.2的依赖
yum -y install zlib* libffi-devel tk-devel
#注意安装时,配置要--with-ssl,否则可能会不能使用pip3
./configure --with-ssl
make
sudo make install
然后,ln -s the-path-of-python3/python /usr/bin/python3
请注意,centos中默认为python2,请不要把python3链接为python,不然,自带的yum等工具可能会出问题。