Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matplotlib更新导致启动失败 #174

Open
Cathgao opened this issue Jan 24, 2021 · 1 comment
Open

matplotlib更新导致启动失败 #174

Cathgao opened this issue Jan 24, 2021 · 1 comment

Comments

@Cathgao
Copy link

Cathgao commented Jan 24, 2021

Traceback (most recent call last):
  File "C:\Users\gao\Desktop\HoshinoBot\run.py", line 1, in <module>
    import hoshino
  File "C:\Users\gao\Desktop\HoshinoBot\hoshino\__init__.py", line 54, in <module>
    from . import R
  File "C:\Users\gao\Desktop\HoshinoBot\hoshino\R.py", line 9, in <module>
    from hoshino import logger, util
  File "C:\Users\gao\Desktop\HoshinoBot\hoshino\util\__init__.py", line 12, in <module>
    from matplotlib import pyplot as plt
  File "C:\Users\gao\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\__init__.py", line 174, in <module>
    _check_versions()
  File "C:\Users\gao\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\__init__.py", line 159, in _check_versions
    from . import ft2font
ImportError: DLL load failed while importing ft2font: 找不到指定的模块。

目前可以降级matplotlib来暂时解决
pip install matplotlib==3.2.0

@Cathgao
Copy link
Author

Cathgao commented Jan 24, 2021

若是python3.9,下载3.2.2的whl安装包也可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant