在 Windows 10 上无法识别 Conda 命令

Conda command is not recognized on Windows 10(在 Windows 10 上无法识别 Conda 命令)
本文介绍了在 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 添加到路径变量中,例如设置 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 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 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

python arbitrarily incrementing an iterator inside a loop(python在循环内任意递增迭代器)
Joining a set of ordered-integer yielding Python iterators(加入一组产生 Python 迭代器的有序整数)
Iterating over dictionary items(), values(), keys() in Python 3(在 Python 3 中迭代字典 items()、values()、keys())
What is the Perl version of a Python iterator?(Python 迭代器的 Perl 版本是什么?)
How to create a generator/iterator with the Python C API?(如何使用 Python C API 创建生成器/迭代器?)
Python generator behaviour(Python 生成器行为)