gpt4 book ai didi

python - 无法导入 PIL 的 '_imaging' 模块 : DLL load failed: The specified module could not be found

转载 作者:行者123 更新时间:2023-11-28 17:44:48 24 4
gpt4 key购买 nike

我正在学习 Django,所以我创建了一个简单的图库应用程序,它允许我通过 Django admin 应用程序上传图像。当我通过计算机中的 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 上却不行

关于python - 无法导入 PIL 的 '_imaging' 模块 : DLL load failed: The specified module could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19980162/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com