您的位置:首页 > 编程语言 > Python开发

python3.6安装matplotlib、numpy时报错ImportError

2017-07-31 20:10 471 查看
使用pip install matplotlib成功,它自动会引入numpy的库,但运行  import matplotlib出现下面错误

ImportError: Importing the multiarray numpy extension module failed.
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 allfiles not under version control). Otherwise reinstall numpy.

原因是需要安装numpy+mkl版本,

去这个网站下载 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 对应python版本的numpy+mkl即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: