PIL错误:未安装_imaging C模块 [英] PIL error: The _imaging C module is not installed

查看:133
本文介绍了PIL错误:未安装_imaging C模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了PIL(Python映像库).

I have PIL (Python imaging library) installed.

当我运行Python时:

When I run Python:

import PIL
import Image
import _imaging

我没有错误.但是,在运行我的应用程序时,它会引发

I don't get errors. However, when running my app, it raises

The _imaging C module not installed

推荐答案

在Windows上,删除C:\ Python27中的_imaging.pyd和_imagingft.pyd. 将所有_imaging模块保留在C:\ Python27 \ Lib \ site-packages \ PIL文件夹中.

On Windows, remove _imaging.pyd and _imagingft.pyd inside C:\Python27. Leave all _imaging modules inside the C:\Python27\Lib\site-packages\PIL folder.

对我有用.

这篇关于PIL错误:未安装_imaging C模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆