运行时错误:找不到Freetype库

时间:2019-03-22 00:25:17

标签: python python-3.x opengl freetype glumpy

我正在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

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

对我来说,它有助于安装https://visualstudio.microsoft.com/en/downloads/上的Microsoft C ++ Redistributable