7f769c2612c54f0a6094c6f1b090e80e.png

新装的系统,刚在用python做数据可视化,出现了这样的警报:

ModuleNotFoundError: No module named 'matplotlib'

8609de55d6522a25eeaa61115b00c383.png

于是我就去调试窗里 pip install matplotlib了,一切好像进行得都挺顺利,直到出现:

ERROR: Could not find a version that satisfies the requirement pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib) (from versions: none)

ERROR: No matching distribution found for pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)

那就先搞定问题的pyparsing先吧,pip install pyparsing

5c2875604ba37712195df361074af039.png

然后再来看看这个matplotlib能不能缓过来。pip install matplotlib

d4ac2984ebb3d7b9e3ac98bde08b9884.png

Successfully了,看来只是顺序问题。

在文件里跑跑试试。

db2f885b07020014b2900abf6486cd9b.png

做个图出来不容易啊,感谢两位大神提携。(这舆论还真是在影响股价啊)

Logo

鸿蒙生态一站式服务平台。

更多推荐