load-找不到指定模块的解决方法-importing-while-ft2font-DLL-failed

教程大全 2026-02-17 06:06:23 浏览

今日介绍一下DLL load failed while importing ft2font: 找不到指定模块的解决方法:

import matplotlib.pyplot as pltFile “C:\Users\user\Anaconda3\lib\site packages\matplotlib\\uuuu init\uuuu。In < module >, line 174_check_versions()File “C:\Users\user\anaconda3\lib\site packages\matplotlib\\uuuu init\uuuu。py“, line 159, in _check_versionsfrom . import ft2fontType in ft2font: something something something something something something something something something something something something something something something something something something something something something something.

很可能是matplotlib的版本过高:

>pip show matplotlibName: matplotlibVersion: 3.3.2Summary: Python plotting packageHome page:John D.Hunter, Michael drotbangAuthor email: Matplotlib- users@python.orgLicense: PSF位置:c:\users\user\anaconda3\lib\site包Requires: certifi,We can use cyclier, kiwisolver, numpy, pillow, pyparsing, python-dateutilRequired-by: scikit-image, seaborn

因为小编使用的是3.3.2版本

解决方法:卸载3.3.2版本,重新安装3.3.1版本的matplotlib

>pip uninstall matplotlib>pip install matplotlib==3.3.1

以上是关于“DLL load failed while importing ft2font: 找不到指定模块的解决方法”的介绍,如需购买云服务器,推荐使用 酷番云 ,独享IP,弹性灵活各种配置任您选配,最低只需要43/月,免费帮助配置环境,挂载磁盘等,协助处理简单问题,同时提供快速0元备案,让您快速运营,详情请咨询酷番云。

产品选购地址:

importing
本文版权声明本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站客服,一经查实,本站将立刻删除。

发表评论

热门推荐