简体   繁体   English

python:ImportError:没有名为patheffects的模块

[英]python: ImportError: No module named patheffects

When i try to run a python script in which i do an import statement matplotlib.patheffects, i get an error message saying there is no module called patheffects. 当我尝试运行一个python脚本,我在其中执行导入语句matplotlib.patheffects时,我收到一条错误消息,说没有名为patheffects的模块。 the statement is import matplotlib.patheffects 该语句是import matplotlib.patheffects

Kindly help me to figure out the reason for this error and how to make the code run without this glitch. 请帮助我弄清楚这个错误的原因以及如何在没有这个故障的情况下运行代码。

import matplotlib.patheffects works perfectly well for me. import matplotlib.patheffects非常适合我。 Please make sure you have matplotlib installed. 请确保安装了matplotlib The most current version is 1.0.1 . 最新版本是1.0.1 You can download from here . 你可以从这里下载。

Matplotlib depends on numpy , so make sure you have it installed before installing matplotlib. Matplotlib依赖于numpy ,因此请确保在安装matplotlib之前安装它。

Also check out the tips on installing matplotlib . 另请参阅安装matplotlib的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM