Python conda 不是内部或外部命令,也不是可运行的程序或批处理文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44783053/
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:27:58  来源:igfitidea点击:

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

pythonanacondaspyderconda

提问by gabboshow

I was updating pandas (on windows 7) using:

我正在使用以下方法更新熊猫(在 Windows 7 上):

conda update pandas

accidentally I closed the command window while updating. Now I can't start spyder and if I type conda in the command window I get:

我在更新时不小心关闭了命令窗口。现在我无法启动 spyder,如果我在命令窗口中输入 conda,我会得到:

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

if I type spyder --show=console I get

如果我输入 spyder --show=console 我得到

from PyQt5.Qtwidgets import * 
importerror: DLL load failed: The specific module could not be found

Any idea how to solve this?

知道如何解决这个问题吗?

采纳答案by Jeru Luke

I came across the same problem today. I was trying to install it on Windows 10 (64-bit OS). I installed Anaconda (version 4.4.0) without adding Anaconda to my PATH environment variable.

我今天遇到了同样的问题。我试图在 Windows 10(64 位操作系统)上安装它。我安装了 Anaconda(版本 4.4.0)而没有将 Anaconda 添加到我的 PATH 环境变量中。

The command conda inforeturned the same error:

该命令conda info返回了相同的错误:

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

I uninstalled Anaconda and installed it again, this time by selecting BOTHthe options in the installation instruction as shown:

我卸载了 Anaconda 并再次安装,这次通过选择安装说明中的两个选项,如下所示:

enter image description here:

enter image description here

Now the command conda infoworks, returning relevant information pertaining to version, platform, etc.

现在命令conda info可以工作,返回有关版本、平台等的相关信息。

Hope this helps!!

希望这可以帮助!!

回答by TWTang

Search pip in your system and set the location to your system environment variable. For example, for default setting, you may add following path: C:\ProgramData\Anaconda3\Scripts

在您的系统中搜索 pip 并将位置设置为您的系统环境变量。例如,对于默认设置,您可以添加以下路径:C:\ProgramData\Anaconda3\Scripts

回答by Prayson W. Daniel

You can add anaconda to path in Windows with SETX PATH in CMD.exe. Find where Anaconda is installed (If you cannot remember where it was installed, open Anaconda prompt, and you will see the path to your anaconda)

您可以使用 CMD.exe 中的 SETX PATH 将 anaconda 添加到 Windows 中的路径。找到 Anaconda 的安装位置(如果不记得安装位置,打开 Anaconda prompt,你会看到你的 anaconda 的路径)

  • Search Windows
  • 搜索窗口

Open Anaconda prompt

Open Anaconda prompt

  • Path to your Anaconda
  • 通往 Anaconda 的道路

patht to your conda

patht to your conda

We need both anaconda and its scripts. In CMD:

我们需要 anaconda 及其脚本。在 CMD 中:

SETX PATH "%USERPROFILE%\AppData\Local\Continuum\anaconda3;%USERPROFILE%\AppData\Local\Continuum\anaconda3\Scripts;"

Close and open CMD, and all, if everything went well, will be working.

关闭并打开 CMD,如果一切顺利,一切都会正常运行。

回答by Samre 247

Download the anaconda file in a different folder and install it from there.

在不同的文件夹中下载 anaconda 文件并从那里安装它。

Windows permission errors when installing from Favorites folder Cause The Windows Favorites folder has unusual permissions and may cause permission errors with installers of any software. If you try launching the installer from the Favorites folder you may see errors such as “Setup was unable to create the directory”, “Access is denied”, or “Error opening file for writing”.

从收藏夹文件夹安装时出现 Windows 权限错误 原因 Windows 收藏夹文件夹具有异常权限,可能会导致任何软件安装程序出现权限错误。如果您尝试从收藏夹文件夹启动安装程序,您可能会看到诸如“安装程序无法创建目录”、“访问被拒绝”或“打开文件写入时出错”等错误。

Solution Move the installer to a different folder and run the installer from the new folder.

解决方案将安装程序移动到不同的文件夹并从新文件夹运行安装程序。

回答by kowsalya

"After 32-bit Anaconda installation ,Anaconda Navigator Not found Only Anaconda prompt is found"

“安装 32 位 Anaconda 后,找不到 Anaconda Navigator 仅找到 Anaconda 提示”

First install Anaconda2-5.3.1-Windows-x86.exe

首先安装Anaconda2-5.3.1-Windows-x86.exe

https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe

https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe

After this, open Anaconda Prompt

在此之后,打开Anaconda Prompt

1.enter command to check python installation where python

1.输入命令查看python安装位置python

(base) C:\Users\admin>where python
C:\Users\admin\Miniconda3\python.exe

2.enter command to check conda installation where conda

2.输入命令查看conda安装在哪里conda

(base) C:\Users\admin>where conda
C:\Users\admin\Miniconda3\Library\bin\conda.bat
C:\Users\admin\Miniconda3\Scripts\conda.exe

3.enter command to find version conda --version

3.输入命令查找版本conda --version

Inside the System Properties window, go to the Advanced taband click on Environment Variables

System Properties 窗口中,转到Advanced 选项卡并单击Environment Variables...

Select the Path variableand click the Edit button. click the New button. Then, add these two locations:

选择Path 变量并单击编辑按钮。单击新建按钮。然后,添加这两个位置:

C:\Users\*YourUser*\Anaconda3\Scripts
C:\Users\*YourUser*\Anaconda3

4.After this steps ,add Command to install Anaconda Navigator

4.在这一步之后,添加命令来安装Anaconda Navigator

 conda install  anaconda-navigator

Now open the start menu ,you can found the anaconda navigator

现在打开开始菜单,你可以找到anaconda navigator

For further reference

供进一步参考

https://appuals.com/fix-conda-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/

https://appuals.com/fix-conda-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/

回答by Laxmi Narayana

solution for conda not recognized as a internal or external even after specifying path.try to reinstallthe anaconda i.e., firstly uninstall the present installed one and again reinstall it. then make sure that u have checked the box which is not just me. click on all users(requires admin privileges)provide the access and then choose your folder or let it be as it is if your c drive has required space then checkbox for automatic path then install it. after the installation check for anaconda prompt in search else go to command prompt then check out by typing conda -versionit will show you the version. install the packages. type android-navigatorthen enter to open the application then launch your required application.

即使在指定路径后 conda 也未被识别为内部或外部的解决方案尝试重新安装anaconda ie,首先卸载当前安装的一个,然后重新安装它。然后确保您选中了不只是我的框。单击所有用户(需要管理员权限)提供访问权限,然后选择您的文件夹,或者如果您的 c 驱动器需要空间,则保持原样,然后选中自动路径,然后安装它。安装后,在搜索中检查 anaconda 提示,否则转到命令提示符,然后键入conda -version进行检查,它将显示版本。安装软件包。输入android-navigator然后输入以打开应用程序,然后启动所需的应用程序。