1)下载地址:https://www.python.org/downloads/
2)解压: tar -xvzf Python-3.7.0.tgz
3)切换路径:cd Python-3.6.3
4)./configure --prefix=/usr/local/python3.7.0 编译
5)make
6)make install
# cd /usr/bin
# mv python python.back //备份原先的python
# ln -s /usr/local/python3.7.0/bin/python3 /usr/bin/python
# mv pip pip.back //备份原先的pip
# ln -s /usr/local/python3.7.0/bin/pip3 /usr/bin/pip
网友评论