for linux,明明有安裝python3了,怎麼會還出現「/usr/bin/env: ‘python’: No such file or directory」錯誤訊息無法執行.py檔呢?
明明有安裝python3了,怎麼會還出現「/usr/bin/env: ‘python’: No such file or directory」錯誤訊息無法執行.py檔呢?
很多人有很多種做法,我是用這式方
-----------------------------------------
You can try the command line tool
update-alternatives
.$ sudo update-alternatives --config python
If you get the error "no alternatives for python" then set up an alternative yourself with the following command:$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
Change the path /usr/bin/python3
to your desired python version accordingly.-----------------------------------------
來源參考這裡 的最終一PO
就將,一起加油吧
0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁