Windows 10 无法识别 Conda 命令 [英] Conda command is not recognized on Windows 10

查看:62
本文介绍了Windows 10 无法识别 Conda 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下说明在 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 添加到您的路径变量中,例如set 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代码>键→进入<代码>环境→从<代码>设置中选择→<代码>为您的帐户编辑环境变量→选择<代码>路径变量→EditNew.

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 settingsedit environment variables for your account → select Path variable → EditNew.

为了测试它,打开一个新的 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 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆