在Linux系统中,Python通常是自带的,但是如果要使用高版本则需要自行安装,下面讲下Python3.6的源码安装。
yum -y groupinstall development
yum -y install zlib-devel
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar -zxf Python-3.6.0.tgz
cd Python-3.6.0
./configure
make
make install
[[email protected] ~]# python3 -V
Python 3.6.0
时间: 2024-12-24 16:26:07