发布于 2018-12-18 03:28:14
垃圾鸽子没有预装自由类型。您看到的文件夹实际上有一个API来将原始的免费类型绑定到模块中。
如果您打开位于此文件夹中的文件"main.py“,您将看到如下所示:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------
----------
#
# FreeType high-level python API - Copyright 2011 Nicolas P. Rougier
# Distributed under the terms of the new BSD license.
#
# -------------------------------------------------------------------
----------
'''
FreeType high-level python API
This the bindings for the high-level API of FreeType (that must be
installed
somewhere on your system).
Note:
C Library will be searched using the ctypes.util.find_library.
However,
this
search might fail. In such a case (or for other reasons), you can
specify
the
FT_library_filename before importing the freetype library and
freetype will
use
the specified one.
'''因此,正如纸条上说的那样,Glumpy试图找到这个包,但失败了。因此,您必须在此文件中手动找到它,方法是添加FreeType.dll文件所在的路径字符串。
1-用pip安装自由类型。2-在第49行中,将路径添加到.dll文件中。3-注释错误处理程序“引发RuntimeError(‘自由类型库未找到’)”。
这应该能解决问题。
https://stackoverflow.com/questions/53013496
复制相似问题