問(wèn)題描述
我按照此處的說(shuō)明在 Windows 10 上安裝了 Anaconda 4.4.0(Python 3.6 版本):https://www.continuum.io/downloads.但是,當(dāng)我打開命令提示符窗口并嘗試編寫時(shí)
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' 命令無(wú)法識(shí)別...
'conda' command is not recognized...
錯(cuò)誤.
我試著跑了
set PATH=%PATH%;C:UsersAlexAnaconda3
但這沒(méi)有幫助.我還讀到我可能需要編輯我的 .bashrc
文件,但我不知道如何訪問(wèn)這個(gè)文件,以及我應(yīng)該如何編輯它.
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 中,您必須將路徑設(shè)置為安裝 Anaconda3 的位置.
In Windows, you will have to set the path to the location where you installed Anaconda3 to.
對(duì)我來(lái)說(shuō),我將 anaconda3 安裝到 C:Anaconda3
中.因此,您需要將 C:Anaconda3
以及 C:Anaconda3Scripts
添加到路徑變量中,例如設(shè)置 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
.
您可以通過(guò) powershell 執(zhí)行此操作(見(jiàn)上文,https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ),或點(diǎn)擊 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
.
要測(cè)試它,打開一個(gè)新的 dos shell,你現(xiàn)在應(yīng)該可以使用 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
.
這篇關(guān)于在 Windows 10 上無(wú)法識(shí)別 Conda 命令的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!