本文介绍了没有名为Image的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起我的语法,我不会说英语。
设置filebrowser,tinymce和grappelli后,我收到此错误:没有名为Image的模块

Sorry for my grammar, I don't speak English.After I set filebrowser, tinymce, and grappelli, I get this error: No module named Image

try:
    from PIL import Image
except ImportError:
    import Image

我将其设置为 PIL 但它没有解决问题。
我的平台窗口

I set it to PIL but it didn't solve the problem.my platform windows

如果我想要:pip install PIL

If i want: pip install PIL

`c:\Users\Kim\BitNami DjangoStack projects\homex8>pip install PIL
Downloading/unpacking PIL
  Running setup.py egg_info for package PIL
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py

Installing collected packages: PIL
  Running setup.py install for PIL
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py
    building '_imaging' extension
    error: Unable to find vcvarsall.bat`

我不明白这意味着什么

解决了问题。
使用easy_install重新安装PIL,以及更多动作,这里有。

推荐答案

您是否设置了PIL模块?

Did you setup PIL module? Link

您可以尝试在您的计算机上重新安装它。

You can try to reinstall it on your computer.

这篇关于没有名为Image的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 13:45
查看更多