我在我的Windows 7 Professional机器上安装了Anaconda3 4.4.0(32位),并在Jupyter笔记本上导入了NumPy和Pandas,所以我假设Python安装正确。但是当我在命令提示符中输入conda list和conda——version时,它说conda不被识别为内部或外部命令。
我已经为Anaconda3设置了环境变量;变量名称:Path,变量值:C:\Users\dipanwita.neogy\Anaconda3
我该怎么做呢?
我在我的Windows 7 Professional机器上安装了Anaconda3 4.4.0(32位),并在Jupyter笔记本上导入了NumPy和Pandas,所以我假设Python安装正确。但是当我在命令提示符中输入conda list和conda——version时,它说conda不被识别为内部或外部命令。
我已经为Anaconda3设置了环境变量;变量名称:Path,变量值:C:\Users\dipanwita.neogy\Anaconda3
我该怎么做呢?
当前回答
我有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已成功安装。
其他回答
需要明确的是,你需要进入控制面板\系统\高级系统设置\环境变量\路径, 然后点击编辑并添加:
C:Users\user.user\Anaconda3\Scripts
并重新启动CMD行
进入anaconda提示(在笔记本电脑的搜索框中输入“anaconda”)。输入以下命令
where conda
将该位置添加到环境路径变量中。关闭cmd并再次打开它
我找到了解决办法。 变量值应为C:\Users\dipanwita.neogy\Anaconda3\Scripts
对于那些没有勾选“将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
我在windows 10中也遇到了同样的问题,按照下面的步骤更新环境变量,工作正常。
我知道这是一个很长的回答简单的环境设置,我认为这可能是有用的新窗口10用户。
1)打开Anaconda提示:
2)检查Conda安装位置。
where conda
3)打开高级系统设置
4)点击环境变量
5)编辑路径
6)添加新路径
C:\Users\RajaRama\Anaconda3\Scripts
C:\Users\RajaRama\Anaconda3
C:\Users\RajaRama\Anaconda3\Library\bin
7)打开命令提示符和检查版本
8)第7步后打字 在CMD中安装anaconda-navigator,然后按y