- 积分
- 12
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-8-16
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
安好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。
|
|