编程语言
首页 > 编程语言> > 更改Python3软连接

更改Python3软连接

作者:互联网

whereis python3
whereis pip3

mv /usr/bin/python3 /tmp/
mv /usr/bin/pip3 /tmp/

# -f 覆盖旧的软连接
ln -sf /usr/bin/python3.6 /etc/alternatives/python3
ln -sf /usr/bin/pip3.6 /etc/alternatives/pip3

python3.6
pip3.6 -V

ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
python

标签:bin,tmp,pip3,更改,ln,Python3,usr,连接,python3
来源: https://www.cnblogs.com/xjzyy/p/16309564.html