Conda 不是内部或外部命令可运行程序或批处理文件

Conda is not recognized as an internal or external command operable program or batch file

当我 运行 命令 conda 时,我收到此错误: Conda is not recognized as an internal or external command operable program or batch file 几乎每一种情况都是环境变量的解决方案(我已经在C:\Users\*me*\Anaconda3\Scripts中添加了),但是这里的情况不同:

最近安装了Anaconda,主要是因为Spyder。有段时间还好好的,但是安装AstroQuery的时候,调试器报错:__ init __ is not a method of NumPy(记不太清了)。我试图通过一些谷歌搜索来解决这个问题。我发现我需要使用强制标志 (-f) 删除 NumPy 和 SetupTools,然后重新安装它们。所以我删除了这些库,但我收到了 Conda 的输出,即新的 NumPy 不能与其他库结合使用(Conda 列出了近 100 个不能与 NumPy 结合的包)。那一刻,我心里想,我真的搞砸了。我把Anaconda删了再安装,但是打开Conda的时候报错The specified path cannot be found.

我们到了。我也尝试使用 conda 命令,但没有成功。

问题简而言之: 我从 Conda 中删除了 NumPy 和 setuptools,但由于不兼容,我无法再次安装它们。所以我删除了 Anaconda 并重新安装了它。我收到错误 The specified path cannot be found.

谢谢!

我设法解决了问题:我只需要激活基础环境。

这个问题告诉我们,有时候答案就在我们眼前,却看不到,因为我们常常把事情想得太复杂了。

感谢@FlyingTeller 评论支持