运行时错误:找不到Freetype库

问题描述 投票:0回答:1

我在python 3.7.2和Windows 10上运行Glumpy。即使通过pip安装,我仍然会收到此错误。

Traceback (most recent call last):
  File "C:\Users\algeb\Downloads\Animoji-Animate-master\animate.py", line 3, in <module>
    from glumpy import app, gloo, gl
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\__init__.py", line 7, in <module>
    from . import app
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\app\__init__.py", line 16, in <module>
    from glumpy.ext.inputhook import inputhook_manager, stdin_ready
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\ext\__init__.py", line 6, in <module>
    from . import freetype
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\ext\freetype\__init__.py", line 49, in <module>
    raise RuntimeError('Freetype library not found')
RuntimeError: Freetype library not found
python python-3.x opengl freetype glumpy
1个回答
0
投票

根据上面的评论中的讨论,问题似乎是Glumpy需要freetype包,这需要安装FreeType库。您可以下载FreeType的Windows二进制文件,例如here。确保下载.dll以获得正确的平台(在您的情况下,现在看起来似乎是64-Bit)。下载完成后,将.dll放在计算机上的某个位置,并将路径添加到PATH环境变量所在的目录中。然后freetype包应该能够找到它。更详细的安装说明可以在freetype包Readme中找到。

© www.soinside.com 2019 - 2024. All rights reserved.