linux replace python

2018-07-17  本文已影响0人  手捧樱花v

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

上一篇 下一篇

猜你喜欢

热点阅读