問題描述
我正在嘗試從 windows 命令提示符 (windows 10) 運行 python.所以結果是沒有配置path環境變量時的典型結果
I am trying to run python from the windows command prompt (windows 10). So the result is the typical one when the path environment variable is not configured
c:windowssystem32>python
'python' is not recognized as an internal or external command, operable
program or batch file
但是,我不確定應該在路徑變量中設置哪個目錄.
however, I am not sure which is the right directory I should set up in the path variable.
我嘗試了一些變體,但都不起作用,包括:
I tried a few variations, and none of them work, including:
c:usersxxxanaconda3
c:usersxxxanaconda3Scripts
c:usersxxxanaconda3libspython34
它們都不起作用.
有沒有人對這個特定的系統星座(windows、anaconda)有經驗.謝謝.
Does anyone have experience with this particular system constellation (windows, anaconda). Thanks.
推薦答案
原來我錯了.
解決方案是:在anaconda(以及其他實現)中,將path環境變量設置為'python.exe'的安裝目錄.
Solution is: in anaconda (as well as in other implementations), set the path environment variable to the directory where 'python.exe' is installed.
默認情況下,anaconda 中的 python.exe 文件位于:
As a default, the python.exe file in anaconda is in:
c:.....anaconda
在你這樣做之后,很明顯,python 命令在我的例子中起作用,產生以下結果.
after you do that, obviously, the python command works, in my case, yielding the following.
python
Python 3.4.3 |Anaconda 2.2.0. (64|bit)|(default, Nov 7 2015), etc, etc
這篇關于anaconda - Windows 中的路徑環境變量的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!