无法导入PIL的'_imaging'模块:DLL加载失败:找不到指定的模块

受害者

我正在学习Django,因此我创建了一个简单的Gallery应用程序,该应用程序允许我通过Django管理应用程序上传图像当我从计算机上通过ImageField选择图像并点击Save时,它给出了一个错误

ImproperlyConfigured at /admin/photogallery/photo/add/
The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found.

我正在使用Django1.6,apache2.2,Python2.7.5,并且此版本的python还安装了PIL。

有谁知道如何解决这个问题?

受害者

正如Ludwik Trammer所建议的那样,我卸载了PIL并安装了Pillow,问题得以解决。PILDjango的早期版本上对我来说工作正常,但在Django 1.6上却不行

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Python层图像失败:“无法导入模块'lambda_function':无法从'PIL'导入名称'_imaging'”

Pyinstaller:导入错误:DLL加载失败:找不到指定的模块

Pyinstaller 导入错误:DLL 加载失败:找不到指定的模块

DLL加载失败:导入scipy时找不到指定的模块

无法从“ PIL”导入名称“ _imaging”

尝试导入sklearn模块时出错:ImportError:DLL加载失败:找不到指定的模块

cx_Freeze ImportError:导入_ctypes时,DLL加载失败失败:找不到指定的模块

尝试安装 TensorFlow-GPU...因导入错误而失败:DLL 加载失败:找不到指定的模块

导入matplotlib._png作为_png导入:错误:DLL加载失败:找不到指定的模块

导入错误:DLL 加载失败:找不到指定的模块。在尝试导入 TensorFlow 时

无法加载DLL'wpcap.dll'。找不到指定的模块

OpenCV-Python 导入错误:DLL 加载失败:找不到指定的模块

从scipy.linalg导入_fblas:ImportError:DLL加载失败:找不到指定的模块

发生异常:导入pdftotext时,ImportError DLL加载失败:找不到指定的模块

ImportError:导入_psycopg时DLL加载失败:找不到指定的模块

使用conda从Anaconda导入numpy时出错(DLL加载失败:找不到指定的模块)

从 sklearn 导入“kfold”时出现“DLL 加载失败:找不到指定的模块”错误

ImportError:导入pyexpat时DLL加载失败:找不到指定的模块

导入错误:DLL加载失败:使用cxfreeze时找不到指定的模块

导入ft2font时DLL加载失败:找不到指定的模块

无法打开 ANACONDA 或 SPYDER:ImportError:DLL 加载失败:找不到指定的模块

“导入焊炬”给出错误“从torch._C import *,DLL加载失败:找不到指定的模块”

收到错误“ DLL加载失败:找不到指定的模块”。在尝试使用PyCharm在Anaconda中导入Windows的Tensorflow时

sdl2-ImportError:DLL加载失败:找不到指定的模块,并且[CRITICAL] [App]无法获取窗口,中止

无法加载DLL'SqlServerSpatial140.dll':找不到指定的模块

无法加载动态库php_zmq.dll-找不到指定的模块

导入win32service,win32api,win32con,winerror ImportError:DLL加载失败:找不到指定的模块

PIL:DLL加载失败:找不到指定的过程

ImportError:无法导入名称_imaging