我遇到了麻煩讓python 3在我的bash shell中工作。我在PC上安裝了python2和python3(Windows 10)。當我在bash終端輸入python --version
時,它打印Python 2.7.13
,但是當我鍵入python3 --version
時,它會打印:bash:python3: command not found
。我找不到Update Shell Profile.command
文件作爲Installed python3, getting command not found error in terminal安裝了python 3,bash不能識別python3命令
0
A
回答
-1
建議做 SET PATH =%PATH%; PYTHON_ROOT_FOLDER
+0
這隻會暫時設置**環境變量**。另外,如果'PYTHON_ROOT_FOLDER'被設置爲Py2路徑,這將不會執行任何操作。 – EndermanAPM
+0
它不會。我嘗試過這個。的xD –
相關問題
- 1. 命令不認識bash命令別名
- 2. 即使安裝了wget,wget也不會被識別爲命令
- 3. list.remove在python - 不能識別的命令
- 4. 命令行不能識別python
- 5. 不被識別爲命令 - bash
- 6. Bash無法識別gulp命令
- 7. CLI不識別psql命令
- 8. sublime 3'py'不被識別爲內部或外部命令
- 9. Grunt命令不再識別
- 10. 即使我安裝了Python,Python也不會識別mysql.connector?
- 11. 的Bash shell「加入」命令不能識別操作數
- 12. django1.9不被命令提示識別
- 13. 安裝 - 「PIP 3」不被識別爲一個內部或外部命令,
- 14. 別名Linux命令不能從python識別(commands.getoutput)
- 15. 「python」不被識別爲命令
- 16. 'bash'不被識別爲內部或外部命令
- 17. 安裝工具安裝命令區別
- 18. PYTHON - scrapy startproject命令命令不被識別
- 19. Gem在Ubuntu 14.04上沒有安裝Jekyll:命令不被識別
- 20. VBScript不能識別Speak命令?
- 21. plot命令不能識別列名
- 22. Octave不識別python被安裝
- 23. Python:Pip命令不被識別
- 24. Python3將無法識別sqlite
- 25. Git命令 - 不識別ls命令
- 26. NPM不能識別安裝的模塊
- 27. PhpStorm不能識別安裝pecl_http
- 28. 在命令行中不能識別PHP try-catch? (試圖安裝Composer)
- 29. Python3不安裝
- 30. 節點sass不被命令行識別
顯然出錯了環境變量。你是在windows還是* nix系統上運行? – geostocker
試過使用確切的版本?像python3.5 –
我在窗口上運行它 – Vathox