importError: DLL load failed when import matplotlib.pyplot as plt
importError: DLL load failed when import matplotlib.pyplot as plt
出现这种情况的原因, 大多是matplotlib的版本与python的版本 不兼容所致的.
所以解决办法就是: 先卸载 matplotlib, 然后重新安装之. 在anaconda3的环境里用pip工具进行.
(D:\Anaconda3) C:\Users\Administrator>pip3 uninstall matplotlib
...
(D:\Anaconda3) C:\Users\Administrator>pip3 install matplotlib
71% |███████████████████████ | 6.3MB 2.3MB/s
71% |███████████████████████ | 6.3MB 2.3MB/s
71% |███████████████████████ | 6.3MB 2.3MB/s
71% |███████████████████████ | 6.3MB 2.3MB/s
71% |███████████████████████ | 6.3MB 2.3MB/s
71% |███████████████████████ | 6.4MB 2.3MB/s
71% |███████████████████████ | 6.4MB 2.3MB/s
72% |███████████████████████ | 6.4MB 2.3MB/s
72% |███████████████████████ | 6.4MB 2.6MB/s
72% |███████████████████████ | 6.4MB 2.6MB/s
72% |███████████████████████ | 6.4MB 2.5MB/s
72% |███████████████████████ | 6.4MB 2.2MB/s
72% |███████████████████████ | 6.4MB 2.2MB/s
72% |███████████████████████ | 6.4MB 2.2MB/s
72% |███████████████████████ | 6.5MB 2.2MB/s
72% |███████████████████████▌ | 6.5MB 2.2MB/s
73% |███████████████████████▌ | 6.5MB 2.3MB/s
73% |███████████████████████▌ | 6.5MB 2.3MB/s
73% |███████████████████████▌ | 6.5MB 2.3MB/s
73% |███████████████████████▌ | 6.5MB 2.4MB/s
73% |███████████████████████▌ | 6.5MB 2.4MB/s
73% |███████████████████████▌ | 6.5MB 2.6MB/s
73% |███████████████████████▌ | 6.5MB 2.3MB/s
73% |███████████████████████▌ | 6.5MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.2MB/s
74% |████████████████████████ | 6.6MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.2MB/s
74% |████████████████████████ | 6.6MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.3MB/s
74% |████████████████████████ | 6.6MB 2.0MB/s
74% |████████████████████████ | 6.6MB 2.2MB/s
75% |████████████████████████ | 6.6MB 2.1MB/s
75% |████████████████████████ | 6.7MB 2.0MB/s
75% |████████████████████████ | 6.7MB 2.0MB/s
75% |████████████████████████ | 6.7MB 2.0MB/s
75% |████████████████████████ | 6.7MB 1.9MB/s
75% |████████████████████████ | 6.7MB 1.9MB/s
75% |████████████████████████ | 6.7MB 1.9MB/s
75% |████████████████████████ | 6.7MB 1.9MB/s
75% |████████████████████████ | 6.7MB 2.3MB/s
76% |████████████████████████▌ | 6.7MB 2.4MB/
76% |████████████████████████▌ | 6.7MB 2.0MB/
76% |████████████████████████▌ | 6.8MB 2.1MB/
76% |████████████████████████▌ | 6.8MB 2.2MB/
76% |████████████████████████▌ | 6.8MB 2.2MB/
76% |████████████████████████▌ | 6.8MB 2.0MB/
76% |████████████████████████▌ | 6.8MB 2.0MB/
76% |████████████████████████▌ | 6.8MB 1.9MB/
77% |████████████████████████▌ | 6.8MB 1.7MB/
77% |█████████████████████████ | 6.8MB 1.7MB/
77% |█████████████████████████ | 6.8MB 1.6MB/
77% |█████████████████████████ | 6.9MB 1.8MB/
77% |█████████████████████████ | 6.9MB 1.8MB/
77% |█████████████████████████ | 6.9MB 1.9MB/
77% |█████████████████████████ | 6.9MB 1.9MB/
77% |█████████████████████████ | 6.9MB 2.0MB/
77% |█████████████████████████ | 6.9MB 2.0MB/
78% |█████████████████████████ | 6.9MB 2.1MB/
78% |█████████████████████████ | 6.9MB 2.2MB/
78% |█████████████████████████ | 6.9MB 2.3MB/
78% |█████████████████████████ | 6.9MB 2.3MB/
78% |█████████████████████████ | 7.0MB 2.3MB/
78% |█████████████████████████ | 7.0MB 2.3MB/
78% |█████████████████████████ | 7.0MB 2.3MB/
78% |█████████████████████████ | 7.0MB 2.3MB/
78% |█████████████████████████ | 7.0MB 2.3MB/
79% |█████████████████████████ | 7.0MB 2.3MB/
79% |█████████████████████████▌ | 7.0MB 2.4MB
79% |█████████████████████████▌ | 7.0MB 2.4MB
79% |█████████████████████████▌ | 7.0MB 2.5MB
79% |█████████████████████████▌ | 7.0MB 2.6MB
79% |█████████████████████████▌ | 7.1MB 2.6MB
79% |█████████████████████████▌ | 7.1MB 2.6MB
79% |█████████████████████████▌ | 7.1MB 2.6MB
80% |█████████████████████████▌ | 7.1MB 2.6MB
80% |█████████████████████████▌ | 7.1MB 2.6MB
80% |██████████████████████████ | 7.1MB 2.6MB
80% |██████████████████████████ | 7.1MB 2.6MB
80% |██████████████████████████ | 7.1MB 2.3MB
80% |██████████████████████████ | 7.1MB 2.3MB
80% |██████████████████████████ | 7.1MB 2.3MB
80% |██████████████████████████ | 7.2MB 2.3MB
80% |██████████████████████████ | 7.2MB 2.4MB
81% |██████████████████████████ | 7.2MB 2.3MB
81% |██████████████████████████ | 7.2MB 2.3MB
81% |██████████████████████████ | 7.2MB 2.3MB
81% |██████████████████████████ | 7.2MB 2.3MB
81% |██████████████████████████ | 7.2MB 2.4MB
81% |██████████████████████████ | 7.2MB 2.7MB
81% |██████████████████████████ | 7.2MB 2.8MB
81% |██████████████████████████ | 7.2MB 2.7MB
81% |██████████████████████████ | 7.3MB 2.6MB
82% |██████████████████████████ | 7.3MB 2.4MB
82% |██████████████████████████ | 7.3MB 2.4MB
82% |██████████████████████████▌ | 7.3MB 2.3M
82% |██████████████████████████▌ | 7.3MB 2.3M
82% |██████████████████████████▌ | 7.3MB 2.3M
82% |██████████████████████████▌ | 7.3MB 2.3M
82% |██████████████████████████▌ | 7.3MB 2.4M
82% |██████████████████████████▌ | 7.3MB 2.3M
83% |██████████████████████████▌ | 7.4MB 2.3M
83% |██████████████████████████▌ | 7.4MB 2.4M
83% |██████████████████████████▌ | 7.4MB 2.5M
83% |███████████████████████████ | 7.4MB 2.5M
83% |███████████████████████████ | 7.4MB 2.5M
83% |███████████████████████████ | 7.4MB 2.1M
83% |███████████████████████████ | 7.4MB 2.1M
83% |███████████████████████████ | 7.4MB 2.1M
83% |███████████████████████████ | 7.4MB 2.1M
84% |███████████████████████████ | 7.4MB 2.1M
84% |███████████████████████████ | 7.5MB 1.8M
84% |███████████████████████████ | 7.5MB 1.8M
84% |███████████████████████████ | 7.5MB 1.8M
84% |███████████████████████████ | 7.5MB 1.6M
84% |███████████████████████████ | 7.5MB 1.6M
84% |███████████████████████████ | 7.5MB 1.8M
84% |███████████████████████████ | 7.5MB 1.8M
85% |███████████████████████████ | 7.5MB 1.8M
85% |███████████████████████████ | 7.5MB 1.7M
85% |███████████████████████████ | 7.5MB 1.5M
85% |███████████████████████████ | 7.6MB 1.8M
85% |███████████████████████████▌ | 7.6MB 1.7
85% |███████████████████████████▌ | 7.6MB 1.8
85% |███████████████████████████▌ | 7.6MB 2.0
85% |███████████████████████████▌ | 7.6MB 2.0
85% |███████████████████████████▌ | 7.6MB 1.8
86% |███████████████████████████▌ | 7.6MB 1.7
86% |███████████████████████████▌ | 7.6MB 1.8
86% |███████████████████████████▌ | 7.6MB 1.8
86% |███████████████████████████▌ | 7.6MB 1.9
86% |████████████████████████████ | 7.7MB 2.0
86% |████████████████████████████ | 7.7MB 2.0
86% |████████████████████████████ | 7.7MB 1.7
86% |████████████████████████████ | 7.7MB 1.8
86% |████████████████████████████ | 7.7MB 1.8
87% |████████████████████████████ | 7.7MB 2.0
87% |████████████████████████████ | 7.7MB 2.1
87% |████████████████████████████ | 7.7MB 2.1
87% |████████████████████████████ | 7.7MB 2.1
87% |████████████████████████████ | 7.8MB 2.2
87% |████████████████████████████ | 7.8MB 2.1
87% |████████████████████████████ | 7.8MB 1.9
87% |████████████████████████████ | 7.8MB 2.1
88% |████████████████████████████ | 7.8MB 2.2
88% |████████████████████████████ | 7.8MB 2.2
88% |████████████████████████████ | 7.8MB 2.2
88% |████████████████████████████ | 7.8MB 2.1
88% |████████████████████████████ | 7.8MB 2.1
88% |████████████████████████████▌ | 7.8MB 2.
88% |████████████████████████████▌ | 7.9MB 1.
88% |████████████████████████████▌ | 7.9MB 1.
88% |████████████████████████████▌ | 7.9MB 2.
89% |████████████████████████████▌ | 7.9MB 2.
89% |████████████████████████████▌ | 7.9MB 2.
89% |████████████████████████████▌ | 7.9MB 2.
89% |████████████████████████████▌ | 7.9MB 2.
89% |████████████████████████████▌ | 7.9MB 1.
89% |█████████████████████████████ | 7.9MB 1.
89% |█████████████████████████████ | 7.9MB 1.
89% |█████████████████████████████ | 8.0MB 2.
89% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
90% |█████████████████████████████ | 8.0MB 2.
91% |█████████████████████████████ | 8.1MB 2.
91% |█████████████████████████████ | 8.1MB 2.
91% |█████████████████████████████ | 8.1MB 2.
91% |█████████████████████████████ | 8.1MB 2.
91% |█████████████████████████████ | 8.1MB 1.
91% |█████████████████████████████ | 8.1MB 1.
91% |█████████████████████████████▌ | 8.1MB 2
91% |█████████████████████████████▌ | 8.1MB 2
91% |█████████████████████████████▌ | 8.1MB 2
92% |█████████████████████████████▌ | 8.2MB 2
92% |█████████████████████████████▌ | 8.2MB 2
92% |█████████████████████████████▌ | 8.2MB 1
92% |█████████████████████████████▌ | 8.2MB 1
92% |█████████████████████████████▌ | 8.2MB 1
92% |█████████████████████████████▌ | 8.2MB 2
92% |██████████████████████████████ | 8.2MB 2
92% |██████████████████████████████ | 8.2MB 1
92% |██████████████████████████████ | 8.2MB 1
93% |██████████████████████████████ | 8.2MB 1
93% |██████████████████████████████ | 8.3MB 1
93% |██████████████████████████████ | 8.3MB 2
93% |██████████████████████████████ | 8.3MB 2
93% |██████████████████████████████ | 8.3MB 2
93% |██████████████████████████████ | 8.3MB 2
93% |██████████████████████████████ | 8.3MB 1
93% |██████████████████████████████ | 8.3MB 1
94% |██████████████████████████████ | 8.3MB 2
94% |██████████████████████████████ | 8.3MB 2
94% |██████████████████████████████ | 8.3MB 2
94% |██████████████████████████████ | 8.4MB 2
94% |██████████████████████████████ | 8.4MB 2
94% |██████████████████████████████ | 8.4MB 2
94% |██████████████████████████████ | 8.4MB 2
94% |██████████████████████████████▌ | 8.4MB
94% |██████████████████████████████▌ | 8.4MB
95% |██████████████████████████████▌ | 8.4MB
95% |██████████████████████████████▌ | 8.4MB
95% |██████████████████████████████▌ | 8.4MB
95% |██████████████████████████████▌ | 8.4MB
95% |██████████████████████████████▌ | 8.5MB
95% |██████████████████████████████▌ | 8.5MB
95% |██████████████████████████████▌ | 8.5MB
95% |███████████████████████████████ | 8.5MB
95% |███████████████████████████████ | 8.5MB
96% |███████████████████████████████ | 8.5MB
96% |███████████████████████████████ | 8.5MB
96% |███████████████████████████████ | 8.5MB
96% |███████████████████████████████ | 8.5MB
96% |███████████████████████████████ | 8.6MB
96% |███████████████████████████████ | 8.6MB
96% |███████████████████████████████ | 8.6MB
96% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.6MB
97% |███████████████████████████████ | 8.7MB
97% |███████████████████████████████ | 8.7MB
97% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.7MB
98% |███████████████████████████████▌| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
99% |████████████████████████████████| 8.8MB
100% |████████████████████████████████| 8.9M
B 882kB/s
Requirement already satisfied: cycler>=0.10 in d:\anaconda3\lib\site-packages (f
rom matplotlib) (0.10.0)
Collecting kiwisolver>=1.0.1 (from matplotlib)
Downloading https://files.pythonhosted.org/packages/15/14/a7ae5a7d5fae78b40dd0
d388d83010330cba2df1721b1bd91a8b99044141/kiwisolver-1.1.0-cp36-none-win32.whl (4
4kB)
45% |██████████████▌ | 20kB 1.7MB/s eta 0:00:
68% |██████████████████████ | 30kB 1.8MB/s et
91% |█████████████████████████████ | 40kB 2.0
100% |████████████████████████████████| 51kB
1.2MB/s
Requirement already satisfied: python-dateutil>=2.1 in d:\anaconda3\lib\site-pac
kages (from matplotlib) (2.6.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in d:\an
aconda3\lib\site-packages (from matplotlib) (2.2.0)
Requirement already satisfied: numpy>=1.11 in d:\anaconda3\lib\site-packages (fr
om matplotlib) (1.13.3)
Requirement already satisfied: six in d:\anaconda3\lib\site-packages (from cycle
r>=0.10->matplotlib) (1.11.0)
Requirement already satisfied: setuptools in d:\anaconda3\lib\site-packages (fro
m kiwisolver>=1.0.1->matplotlib) (36.5.0.post20170922)
Installing collected packages: kiwisolver, matplotlib
Could not install packages due to an EnvironmentError:
[Errno 13] Permission denied: 'd:\anaconda3\Lib\site-packages\matplotlib\_image.cp36-win32.pyd'
Consider using the --user
option or check the permissions.
(D:\Anaconda3) C:\Users\Administrator>pip3 install --user matplotlib
Collecting matplotlib
Using cached https://files.pythonhosted.org/packages/39/ae/60ec3ec8f8a18c5eef7
1c6dff7ed0dfa0cd2f2d57b6691e595e2bc43325f/matplotlib-3.1.1-cp36-cp36m-win32.whl
Requirement already satisfied: cycler>=0.10 in d:\anaconda3\lib\site-packages (f
rom matplotlib) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in d:\anaconda3\lib\site-pac
kages (from matplotlib) (2.6.1)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\anaconda3\lib\site-packag
es (from matplotlib) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in d:\an
aconda3\lib\site-packages (from matplotlib) (2.2.0)
Requirement already satisfied: numpy>=1.11 in d:\anaconda3\lib\site-packages (fr
om matplotlib) (1.13.3)
Requirement already satisfied: six in d:\anaconda3\lib\site-packages (from cycle
r>=0.10->matplotlib) (1.11.0)
Requirement already satisfied: setuptools in d:\anaconda3\lib\site-packages (fro
m kiwisolver>=1.0.1->matplotlib) (36.5.0.post20170922)
Installing collected packages: matplotlib
Successfully installed matplotlib-3.1.1
(D:\Anaconda3) C:\Users\Administrator>
importError: DLL load failed when import matplotlib.pyplot as plt的更多相关文章
- pip install torch on windows, and the 'from torch._C import * ImportError: DLL load failed:' solution
通过pip安装PyTorch 0.4.0成功(cpu, not gpu; python3.5; pip): pip3 install http://download.pytorch.org/whl/c ...
- 运行Scrapy项目提示“import win32api ImportError: DLL load failed: 找不到指定的模块。”
安装完成Scrapy时候,终端导入Scrapy时候,发现没有任何报错,但是在运行Scrapy的项目的时候提示“import win32api ImportError: DLL load failed: ...
- import cx_Oracle报错,提示importError: DLL load failed: 不是有效的Win32程序。
问题说明1:WIN32,python是2.7版本,本地oracle client是32位的.import cx_Oracle报错,提示importError: DLL load failed: 该模块 ...
- from PyQt4.QtGui import * 提示 ImportError: DLL load failed: %1 is not a valid Win32 application.
个人用64位电脑安装了64位的PyQt后 from PyQt4.QtGui import * 提示 ImportError: DLL load failed: %1 is not a valid Wi ...
- from scipy import spatial 出现 from .qhull import * ImportError: DLL load failed: The specified module could not be found. 错误
错误描述: 本人机器window8.1 64位,python2.7. Traceback (most recent call last): File "C:/Users/Hamid/Docu ...
- 终于解决了python 3.x import cv2 “ImportError: DLL load failed: 找不到指定的模块” 及“pycharm关于cv2没有代码提示”的问题
终于解决了python 3.x import cv2 “ImportError: DLL load failed: 找不到指定的模块” 及“pycharm关于cv2没有代码提示”的问题 参考 :h ...
- from sklearn import datasets运行错误:ImportError: DLL load failed: 找不到指定的程序------解决办法
在运行集成学习的多数投票分类代码时,出现错误 from sklearn import datasets from sklearn.model_selection import cross_val_sc ...
- from .cv2 import * ImportError: DLL load failed: 找不到指定的模块。 >>>
from .cv2 import * ImportError: DLL load failed: 找不到指定的模块. >>> 昨天看项目的时候遇到这个问题,折腾到深夜,网上的各种方法 ...
- ImportError: DLL load failed: 找不到指定的模块;ImportError: numpy.core.multiarray failed to import 报错解决
python程序运行出错,出错的两行主要信息如下: ImportError: DLL load failed: 找不到指定的模块 ImportError: numpy.core.multiarray ...
随机推荐
- 系统io统计
$ cat /proc/diskstats sda sda1 sda2 gg- gg- gg- 主号 次号 名称 成功读 合并读 扇区读 读时间 每一列的含义分别为: 第一列为 设备号 (nu ...
- Django项目:CRM(客户关系管理系统)--47--38PerfectCRM实现全局账号登录注销02
图片另存为 16*16 名字修改为 global_logo.jpg /*! *bootstrap.js * * Bootstrap v3.3.7 (http://getbootstrap ...
- NOIP2017解题报告
啊不小心点发布了,懒得删了就这样吧,虽然还没写完,也不打算写了大概. d1t1 结论题 没什么好说的 d1t2 模拟 没什么好说的 d1t3 70分算法其实比较好想. 没有0边,就跑最短路,然后按di ...
- JavaScript 实现回文解码
题目也是源自今日头条前端工程师笔试题.题目描述: 现在有一个字符串,你要对这个字符串进行 n 次操作,每次操作给出两个数字:(p, l) 表示当前字符串中从下标为 p 的字符开始的长度为 l 的一个子 ...
- Linq 之 Where操作
适用场景:实现过滤,查询等功能. 说明:与SQL命令中的Where作用相似,都是起到范围限定也就是过滤作用的,而判断条件就是它后面所接的子句. Where操作包括3种形式,分别为简单形式.关系条件形式 ...
- 区块链、云计算、大数据、人工智能、FinTech带来的挑战与机遇,中国技术开放日上海站精彩回顾
区块链.云计算.大数据.人工智能.FinTech带来的挑战与机遇,中国技术开放日上海站精彩回顾 | 作者 韩婷 发布于 2016年12月26日. 估计阅读时间: 不到一分钟 | 欲知区块链.VR.Te ...
- Linux & CentOS & RHEL
1.修改centos7的系统编码:https://blog.csdn.net/violet_echo_0908/article/details/58063555 2.windows 环境下使用ultr ...
- Prime Ring Problem HDU - 1016 (dfs)
Prime Ring Problem HDU - 1016 A ring is compose of n circles as shown in diagram. Put natural number ...
- 群晖安装transmission
首先 需要添加第三方的套件下载地址 http://packages.synocommunity.com/ 然后找到tr 根据需要设置文件夹路径 因为我需要跑rss,所以用到了flexget,先放这里 ...
- nginx日志修改时间格式为年月日时分秒
先解除这段注释,使用自定义日志格式 $time_iso8601 生成格式:--20T09::+: $time_local 生成格式: /Apr/::: + 还是选择年月日时分秒看起来舒服一点