Python:PIL _imaging C 模块
我正在尝试使用一个使用 PIL 的文件,当我尝试运行它时,出现以下错误:
ImportError: The _imaging C module is notinstalled
我知道网上有很多关于此问题的线程,但大多数都非常具体。我 100% 确定我正在运行的代码没有问题。 Python 版本 2.7.2 64 位 Windows 7。我已经尝试修复它近一个小时左右,但我已经失去了理智。有什么建议吗?
I'm trying to use a file that uses PIL and when I try to run it I get the following error:
ImportError: The _imaging C module is not installed
I know theres a bunch of threads online about this but most of them see pretty specific. I'm 100% sure there is no problem with the code I'm running. Python version 2.7.2 64bit windows 7. I've been trying to fix it for almost an hour or so and I'm losing my mind. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试安装枕头。你可以使用以下命令安装它: pip installpillow
你已经安装了 python-imaging 吗?
sudo apt-get install python-imaging。
install first the python-imaging and next install the pillow
try to install pillow. you can install it with the command: pip install pillow
you have install the python-imaging??
sudo apt-get install python-imaging.
install first the python-imaging and next install the pillow
您收到的错误表明您的计算机上未安装 PIL 所需的 C 库,或者安装它的目录不在您的路径上。
我将按照此处的说明进行操作: http://www.pythonware.com/products/pil/ faq.htm
如果所有这些都有效,请发布您的代码,那里是另一个问题。
The error you're receiving suggests that the C library required by PIL is either not installed on your machine, or the directory in which it's installed is not on your path.
I would follow the instructions here: http://www.pythonware.com/products/pil/faq.htm
If all of that works, please post your code, there is another problem.
在 Ubuntu 上,以下命令帮助了我(感谢 askubuntu 上的这个答案):
On Ubuntu, the following command helped me (thanks to this answer on askubuntu):
我在 Windows 上,遇到问题“ImportError:未安装 _imaging C 模块”。
通过从这里安装 Pillow 解决了问题:http://www.lfd.uci。 edu/~gohlke/pythonlibs/#pil。 (它是由帖子给出的,但我无法找到它......)
I am on Windows, and had a problem ""ImportError: The _imaging C module is not installed"".
The problem solved by installing Pillow from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil. (it's given by a post however I can't locate it back..)