“Conda”不能识别为内部或外部命令

2024-04-22 19:27:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Windows 7专业机器上安装了Anaconda3 4.4.0(32位),并在Jupyter笔记本上导入了NumPy和Pandas,所以我假设Python安装正确。但是当我在命令提示符下输入conda listconda --version时,它会显示conda is not recognized as internal or external command.

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

我该怎么做?


Tags: numpy机器pandas专业isversionwindowsnot
3条回答

我在windows 10中也遇到了同样的问题,按照以下步骤更新环境变量,一切正常。

我知道对于简单的环境设置来说,这是一个冗长的回答,我认为它可能对window 10的新用户有用。

1)打开Python提示:

enter image description here

2)检查Conda安装位置。

where conda

enter image description here

3)打开高级系统设置

enter image description here

4)单击环境变量

enter image description here

5)编辑路径

enter image description here

6)添加新路径

 C:\Users\RajaRama\Anaconda3\Scripts

 C:\Users\RajaRama\Anaconda3

 C:\Users\RajaRama\Anaconda3\Library\bin

enter image description here

7)打开命令提示符并检查版本

8)第7步后类型 conda在命令中安装anaconda navigator,然后按y

enter image description here

我找到了解决办法。 变量值应为C:\Users\dipanwita.neogy\Anaconda3\Scripts

虽然别人给了你一个很好的解决方案,但我认为指出真正发生的事情是有帮助的。根据Anaconda 4.4变更日志,https://docs.anaconda.com/anaconda/reference/release-notes/#what-s-new-in-anaconda-4-4

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.

这与以前的安装有所不同。建议使用Navigator或Anaconda提示符,尽管您也可以将其添加到您的路径中。在安装过程中,将Python添加到路径的框现在未选中,但您可以选择它。

相关问题 更多 >