我在我的Windows 7 Professional机器上安装了Anaconda3 4.4.0(32位),并在Jupyter笔记本上导入了NumPy和Pandas,所以我假设Python安装正确。但是当我在命令提示符中输入conda list和conda——version时,它说conda不被识别为内部或外部命令。

我已经为Anaconda3设置了环境变量;变量名称:Path,变量值:C:\Users\dipanwita.neogy\Anaconda3

我该怎么做呢?


当前回答

对于那些没有勾选“将Anaconda添加到我的PATH环境变量”的人。在Windows 10中是这样的:

5路径:

C:\Users\shtosh\anaconda3
C:\Users\shtosh\anaconda3\Library\mingw-w64\bin
C:\Users\shtosh\anaconda3\Library\usr\bin
C:\Users\shtosh\anaconda3\Library\bin
C:\Users\shtosh\anaconda3\Scripts

其他回答

如果你使用chocoley, conda在C:\tools\Anaconda3\Scripts

如果你不想把Anaconda添加到env。路径,并且您正在使用Windows,请尝试以下操作:

打开cmd; 键入文件夹安装路径。大概是这样的: C:\Users\your_home文件夹\ Anaconda3 \脚本 测试Anaconda,例如类型conda—version。 Update Anaconda: conda Update conda or conda Update——all or conda Update Anaconda。

世爵更新:

Conda更新qt pyqt Conda更新spyder

进入anaconda提示(在笔记本电脑的搜索框中输入“anaconda”)。输入以下命令

where conda

将该位置添加到环境路径变量中。关闭cmd并再次打开它

除了添加C:\Users\yourusername\Anaconda3和C:\Users\yourusername\Anaconda3\Scripts(如上文所推荐的),还将C:\Users\yourusername\Anaconda3\Library\bin添加到路径变量中。这将防止SSL错误,如果您在Anaconda的新安装上执行此操作,则一定会发生SSL错误。

我有64位的Windows 10,这对我来说很有效, 此解决方案可以同时适用于(Anaconda/MiniConda)两个发行版。

First of all try to uninstall anaconda/miniconda which is causing problem. After that delete '.anaconda' and '.conda' folders from 'C:\Users\' If you have any antivirus software installed then try to exclude all the folders,subfolders inside 'C:\ProgramData\Anaconda3\' from Behaviour detection. Virus detection. DNA scan. Suspicious files scan. Any other virus protection mode. *(Note: 'C:\ProgramData\Anaconda3' this folder is default installation folder, you can change it just replace your excluded path at installation destination prompt while installing Anaconda)* Now install Anaconda with admin privileges. Set the installation path as 'C:\ProgramData\Anaconda3' or you can specify your custom path just remember it should not contain any white space and it should be excluded from virus detection. At Advanced Installation Options you can check "Add Anaconda to my PATH environment variable(optional)" and "Register Anaconda as my default Python 3.6" Install it with further default settings. Click on finish after done. Restart your computer.

现在打开命令提示符或蟒蛇提示符,并使用以下命令检查安装

conda列表

如果您得到任何包列表,则anaconda/miniconda已成功安装。