今日介绍一下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元备案,让您快速运营,详情请咨询酷番云。
产品选购地址:














发表评论