Windows 10无法识别Conda命令 [英] Conda command is not recognized on Windows 10
问题描述
我按照以下说明在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:\Users\Alex\Anaconda3
但是没有帮助.我还读到我可能需要编辑.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.
对我来说,我在C:\Anaconda3
中安装了anaconda3.因此,您需要在路径变量中添加C:\Anaconda3
和C:\Anaconda3\Scripts\
,例如set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\
.
For me, I installed anaconda3 into C:\Anaconda3
. Therefore you need to add C:\Anaconda3
as well as C:\Anaconda3\Scripts\
to your path variable, e.g. set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\
.
您可以通过powershell进行此操作(请参见上文, https://msdn.microsoft.com/zh-cn/library/windows/desktop/bb776899(v = vs.85).aspx ),或按windows
键→输入environment
→从settings
→edit environment variables for your account
中选择→选择Path
变量→Edit
→New
.
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外壳,您现在应该可以使用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命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!