1. 程式人生 > >ubuntu預設使用python2,更改預設使用python3

ubuntu預設使用python2,更改預設使用python3

ubuntu預設使用python2,更改預設使用python3


直接執行這兩個命令即可:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150