問題描述
我按照此處的說明在 Windows 10 上安裝了 Anaconda 4.4.0(Python 3.6 版本):https://www.continuum.io/downloads.但是,當我打開命令提示符窗口并嘗試編寫時
I installed Anaconda 4.4.0 (Python 3.6 version) on Windows 10 by following the instructions here: https://www.continuum.io/downloads. However, when I open the Command prompt window and try to write
conda list
我明白了
'conda' 命令無法識別...
'conda' command is not recognized...
錯誤.
我試著跑了
set PATH=%PATH%;C:UsersAlexAnaconda3
但這沒有幫助.我還讀到我可能需要編輯我的 .bashrc
文件,但我不知道如何訪問這個文件,以及我應該如何編輯它.
but it didn't help. I also read that I might need to edit my .bashrc
file, but I don't know how to access this file, and how I should edit it.
推薦答案
在 Windows 中,您必須將路徑設置為安裝 Anaconda3 的位置.
In Windows, you will have to set the path to the location where you installed Anaconda3 to.
對我來說,我將 anaconda3 安裝到 C:Anaconda3
中.因此,您需要將 C:Anaconda3
以及 C:Anaconda3Scripts
添加到路徑變量中,例如設置 PATH=%PATH%;C:Anaconda3;C:Anaconda3Scripts
.
For me, I installed anaconda3 into C:Anaconda3
. Therefore you need to add C:Anaconda3
as well as C:Anaconda3Scripts
to your path variable, e.g. set PATH=%PATH%;C:Anaconda3;C:Anaconda3Scripts
.
您可以通過 powershell 執行此操作(見上文,https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ),或點擊 windows
鍵 → 輸入 environment
→ 從 settings
中選擇 → edit environment variables for your account
→ 選擇 Path
變量 →編輯
→ 新建
.
You can do this via powershell (see above, https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ), or hit the windows
key → enter environment
→ choose from settings
→ edit environment variables for your account
→ select Path
variable → Edit
→ New
.
要測試它,打開一個新的 dos shell,你現在應該可以使用 conda 命令了.例如,嘗試 conda --version
.
To test it, open a new dos shell, and you should be able to use conda commands now. E.g., try conda --version
.
這篇關于在 Windows 10 上無法識別 Conda 命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!