Ubuntu下切换Python版本
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu下切换Python版本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
遙想當年我不會切換Python版本而把Tensorflow裝在了Windows下的蠢事,記錄一下如何切換Python版本。
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 //切換到python2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 //切換到python3
sudo update-alternatives --config python //顯示當前系統中所有的Python版本
總結
以上是生活随笔為你收集整理的Ubuntu下切换Python版本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何在Windows7下删除Ubuntu
- 下一篇: Ubuntu16.04LTS下搭建强化学