首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Glumpy Python3.6 Win 10中找不到Freetype库

Glumpy Python3.6 Win 10中找不到Freetype库
EN

Stack Overflow用户
提问于 2018-10-26 17:14:21
回答 1查看 979关注 0票数 1

通过在我的手册控制台中执行命令,我按照这个PyCharm安装了Glumpy。所有安装成功的东西(版本),当我尝试去做

代码语言:javascript
复制
from glumpy import app

我得到了下面的错误

根据错误描述,在glumpy\ext文件夹中似乎没有免费类型库,但它是现在时

你有什么办法解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2018-12-18 03:28:14

垃圾鸽子没有预装自由类型。您看到的文件夹实际上有一个API来将原始的免费类型绑定到模块中。

如果您打开位于此文件夹中的文件"main.py“,您将看到如下所示:

代码语言:javascript
复制
    #!/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(‘自由类型库未找到’)”。

这应该能解决问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53013496

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档