MD,这些错误折腾我两三天,各种下载,重装,又是重装numpy,matplot,各种设置
MD,都快把我折磨疯了,各种出错,各种加载错误,就是报错
在aconda的命令窗口中import matplotlib 一点问题都没有,但是在pycharm中就是始终如一的提示 ImportError: DLL load failed: 找不到指定的程序
我也真是CTMD,快疯了
最后,才他妈终于找到问题
http://bbs.06climate.com/forum.php?mod=viewthread&tid=90379
安好pycharm后运行python程序出现以下报错
ImportError:
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: 找不到指定的模块。
经google搜索发现是因为用anaconda安装python的时候没有添加值相应值到系统环境变量Path里。
方法一:
windows下编辑Path:此电脑右击->属性->高级系统设置->高级->环境变量->系统变量->Path,给Path添加三个值:安装路径/Anaconda、安装路径/Anaconda/Scripts、安装路径/Anaconda/Library/bin。
方法二:
pycharm里编辑configuration:Run->Edit Configurations->Environment->Environment variables->点击右边文件夹图标->点+号添加PATH并设置相应Value。
MD,设置了在window的path的三个值,之后,终于显示出正确结果!!!MD,那一瞬间快泪奔了!!!!!!!!!!!!!!!!!