1. sudo rm /usr/local/bin/python
sudo ln -s /usr/bin/python3.6 /usr/local/bin/python
------- python 2.x 切换为 Python3.x
2. sudo rm /usr/local/bin/python
sudo ln -s /usr/bin/python2.7 /usr/local/bin/python
---------python 3.x 切回 Python2.x
时间: 2024-10-08 12:40:44