ImportError:未安装_imagingft C模块

时间:2015-08-17 06:42:13

标签: python django captcha

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

命令:./ manage.py test apatcha显示错误“ImportError:未安装_imagingft C模块”

我已按以下顺序安装软件包:

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文件并手动安装来解决我的问题。

2 个答案:

答案 0 :(得分:2)

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

for windows这两个命令对我有用

答案 1 :(得分:1)

Python: The _imagingft C module is not installed

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

顺便说一句,我应该总是粘贴那些没有解决我问题的热门链接,以证明我之前用谷歌搜索了吗?

相关问题