出現這種狀況的緣由, 大可能是matplotlib的版本與python的版本 不兼容所致的.
因此解決辦法就是: 先卸載 matplotlib, 而後從新安裝之. 在anaconda3的環境裏用pip工具進行.python
...ide
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工具
--user
option or check the permissions.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: matplotlibpost
(D:\Anaconda3) C:\Users\Administrator>ui