'Conda'不被识别为内部或外部命令

问题描述:

我在Windows 7 Professional计算机上安装了Anaconda3 4.4.0(32位),并在Jupyter笔记本电脑上导入了NumPy和Pandas,因此我认为Python已正确安装.但是当我在命令提示符下键入conda listconda --version时,它说conda is not recognized as internal or external command.

I installed Anaconda3 4.4.0 (32 bit) on my Windows 7 Professional machine and imported NumPy and Pandas on Jupyter notebook so I assume Python was installed correctly. But when I type conda list and conda --version in command prompt, it says conda is not recognized as internal or external command.

我已经为Anaconda3设置了环境变量; Variable Name: PathVariable Value: C:\Users\dipanwita.neogy\Anaconda3

I have set environment variable for Anaconda3; Variable Name: Path, Variable Value: C:\Users\dipanwita.neogy\Anaconda3

我如何使其工作?

尽管其他人为您提供了很好的解决方案,但我认为指出实际情况是有帮助的.根据Anaconda 4.4更改日志, https://docs.anaconda.com/anaconda/reference/release-notes/#what-s-new-in-anaconda-4-4 :

Although you were offered a good solution by others I think it is helpful to point out what is really happening. As per the Anaconda 4.4 changelog, https://docs.anaconda.com/anaconda/reference/release-notes/#what-s-new-in-anaconda-4-4:

在Windows上,默认情况下不再更改PATH环境变量,因为这可能会引起其他软件的麻烦.建议的方法是,当您希望使用Anaconda软件时,改用Anaconda Navigator或Anaconda命令提示符(位于"Anaconda"下的开始"菜单中).

On Windows, the PATH environment variable is no longer changed by default, as this can cause trouble with other software. The recommended approach is to instead use Anaconda Navigator or the Anaconda Command Prompt (located in the Start Menu under "Anaconda") when you wish to use Anaconda software.

(注意:最近的Win 10并不假定您具有安装或更新的特权.如果命令失败,请右键单击Anaconda命令提示符,选择更多",选择以管理员身份运行")

(Note: recent Win 10 does not assume you have privileges to install or update. If the command fails, right-click on the Anaconda Command Prompt, choose "More", chose "Run as administrator")

这是对先前安装的更改.尽管您也可以随时将其添加到PATH中,但建议使用Navigator或Anaconda Prompt.在安装过程中,未选中将Anaconda添加到PATH的框,但您可以选择它.

This is a change from previous installations. It is suggested to use Navigator or the Anaconda Prompt although you can always add it to your PATH as well. During the install the box to add Anaconda to the PATH is now unchecked but you can select it.