【问题标题】:ImportError: The _imagingft C module is not installedImportError:未安装 _imagingft C 模块
【发布时间】:2016-05-02 09:44:19
【问题描述】:

我在 django 中使用 django-simple-captcha。

命令:./manage.py test apatcha 显示错误“ImportError: The _imagingft C module is not installed”

我已经按照以下顺序安装了包:

yum install freetype-devel libjpeg-devel libpng-devel
pip uninstall Pillow
pip uninstall Pillow-PIL
pip install Pillow
pip install Pillow-PIL

但它仍然不起作用。 我哪里错了?

系统:CentOS 6.5

Python: The _imagingft C module is not installed

上面的链接不能解决我的问题,否则我不会在这里。 最后,我通过从官网下载tar.gz文件并手动安装解决了我的问题。

【问题讨论】:

标签: python django captcha


【解决方案1】:

pip 卸载 PIL - 和 - 点安装枕头

对于 Windows,这 2 个命令对我有用

【讨论】:

  • 为我工作,我都卸载了,然后只安装了枕头
【解决方案2】:

Python: The _imagingft C module is not installed

上面的链接不能解决我的问题,否则我不会在这里。最后,我通过从官网下载tar.gz文件并手动安装解决了我的问题。

顺便问一下,我是否应该总是粘贴没有解决我问题的热链接,以证明我在问之前用谷歌搜索过?

【讨论】:

    猜你喜欢
    • 2011-04-30
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-13
    • 1970-01-01
    • 2019-01-29
    • 2018-09-25
    相关资源
    最近更新 更多