Python Windows 10 conda 未被识别为内部或外部命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44488349/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 00:03:27  来源:igfitidea点击:

Windows 10 conda is not recognized as an internal or external command

pythonpython-3.xanacondaconda

提问by daiyue

Tried to

试着

conda install -c conda-forge requests-futures=0.9.7

conda install -c conda-forge requests-futures=0.9.7

but failed with

但失败了

conda is not recognized as an internal or external command,

conda is not recognized as an internal or external command,

C:\Users\user_name\Anaconda3\Scriptshas been set for Pathin environment variablesunder both userand System variables.

C:\Users\user_name\Anaconda3\Scripts已定于Pathenvironment variables以下两userSystem variables

I installed Python 3.5as well and it is on Path, I am using Win10 X64.

我也安装Python 3.5了,它打开了Path,我正在使用Win10 X64.

How to fix the issue?

如何解决问题?

采纳答案by whoosis

There is a similar question asked here before, check thismay be it will help you.

之前在这里问过一个类似的问题,检查可能对你有帮助。

To make sure that conda package is installed correctly, check if conda package files , i.e condaconda-envconda-env-scriptconda-scriptconda-serverconda-server-scriptetc are present in Anaconda3\Scripts folder.

为了确保 conda 包安装正确,请检查 conda 包文件,即condaconda-envconda-env-scriptconda-scriptconda-serverconda-server-script等是否存在于 Anaconda3\Scripts 文件夹中。

回答by Michael James Kali Galarnyk

When you install anaconda on windows now, it doesn't automatically add Python or Conda to your path.

当您现在在 Windows 上安装 anaconda 时,它不会自动将 Python 或 Conda 添加到您的路径中。

If you don't know where your conda and/or python is, you type the following commands into your anaconda prompt

如果您不知道 conda 和/或 python 在哪里,请在 anaconda 提示符中键入以下命令

enter image description here

在此处输入图片说明

Next, you can add Python and Condato your path by using the setx command in your command prompt. enter image description here

接下来,您可以使用命令提示符中的 setx 命令将Python 和 Conda添加到您的路径中。 在此处输入图片说明

Next close that command prompt and open a new one. Congrats you can now use conda and python

接下来关闭该命令提示符并打开一个新的。恭喜你现在可以使用 conda 和 python

Source: https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444

来源:https: //medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444

回答by Rahul Sawra

Just Check Both the options while installing Anaconda.

只需在安装 Anaconda 时选中这两个选项。

(https://i.stack.imgur.com/WogNs.jpg)

( https://i.stack.imgur.com/WogNs.jpg)