Freetype library not found问题解决

来源:互联网 发布:全球贸易预警数据库 编辑:程序博客网 时间:2024/06/10 05:25


安装目录

C:\Users\***\AppData\Local\Continuum\Miniconda3\Lib\site-packages\freetype


Freetype library not found问题详解,python(编程语言)+freetype(字体引擎)opencv 中文显示



if filename is None:
    if platform.system() == 'Windows':
        # Check current working directory for dll as ctypes fails to do so
        filename = os.path.join(os.path.realpath('.'), 'freetype.dll')
        print (filename)
    else:
        filename = 'libfreetype.so.6'


找到filename

C:\Users\****\AppData\Local\Continuum\Miniconda3\pkgs\freetype-2.7-vc9_1\Library\bin\freetype.dll

把freetype.dll拷贝到那个目录即可

原创粉丝点击