使用Anaconda过程中的一些问题及其解决办法

在windows 10系统中通过在命令行输入ipython以使用IPython命令行时,在一条语句中欲引用numpy包:import numpy as np,出现如下报错:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: 找不到指定的程序
使用conda list命令,发现numpy包安装完好,正确,因此不是包的安装问题。
经查证,是环境变量的配置有问题,具体的方法是:找到安装Anaconda的位置,具体来说,我的安装位置是:C:\ProgramData\Anaconda3
向系统环境变量的Path中添加环境变量:C:\ProgramData\Anaconda3\Library\bin,保存更改即可。
有关Anaconda的安装过程,参见:https://blog.csdn.net/ITLearnHall/article/details/81708148

猜你喜欢

转载自blog.csdn.net/hankel12/article/details/86507255