Debian9.2中將默認的python2,但如今用python3,把系統默認的python改成python3:python
1.查看系統默認的python應用程序:python2.7
root@debian92:/usr/bin# ls -la python lrwxrwxrwx 1 root root 9 1月 24 2017 python -> python2.7python3.5
2.更改統默認的python2爲python3:debian
cd /usr/bin程序
mv python python2im
ln -si python3 python 這樣就能夠img
3.查看更改:mv
root@debian92:/usr/bin# ls -la python lrwxrwxrwx 1 root root 7 10月 30 14:53 python -> python3 root@debian92:/usr/bin# ls -la python3 lrwxrwxrwx 1 root root 9 1月 20 2017 python3 -> python3.5系統
重啓Debian9.2系統,能正常進入系統