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

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

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

import matplotlib.pyplot as plt
File “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_versions
from . import ft2font
Type 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 matplotlib
Name: matplotlib
Version: 3.3.2
Summary: Python plotting package
Home page: https://matplotlib.org
By John D.Hunter, Michael drotbang
Author email: Matplotlib- users@python.org
License: PSF位置:c:\users\user\anaconda3\lib\site包
Requires: certifi,We can use cyclier, kiwisolver, numpy, pillow, pyparsing, python-dateutil
Required-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元备案,让您快速运营,详情请咨询酷番云。

产品选购地址:

https://www.kufanyun.com/server/buy.html

图片来源于互联网,如侵权请联系管理员。作者:路飞,如若转载,请注明出处:https://www.kufanyun.com/ask/1315.html

(0)
路飞路飞
上一篇 2021年12月15日 下午3:51
下一篇 2021年12月17日 下午3:36

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注