首页 > 代码库 > Linux/安装python

Linux/安装python

# yum install zlib-devel -y

# tar -xf Python-3.6.0
cd Python-3.6.0
# ./configure --prefix=/usr/local/python3.6# make && make install
# echo ‘PATH=/usr/local/python3.6/bin:$PATH‘ >>/etc/profile
# tail -1 /etc/profile
PATH=/usr/local/python3.6/bin:$PATH
# source /etc/profile

Linux/安装python