如何解决没有名为“PIL”的模块错误消息

How to resolve No module named 'PIL' error message

提问人:DED MURDERER 提问时间:10/30/2023 更新时间:10/30/2023 访问量:26

问:

我承认这个问题很常见,而且被广泛报道。但是,列出的所有解决方案都没有解决我当前面临的问题。

我已经使用 pip 下载了 Pillow。我使用的是 python,而不是 python3 或任何其他类型。 导入 PIL 时,我不断收到 modulenotfound 错误。

import PIL

PIL.__version__
模块 python-imaging-library python-import python-module

评论

0赞 Nam Anh 10/30/2023
你可以在这里找到答案 stackoverflow.com/questions/8863917/......
0赞 Goku - stands with Palestine 10/30/2023
枕头和太平船务不能在同一环境中共存。在安装 Pillow 之前,请卸载 PIL。;pillow.readthedocs.io/en/stable/installation.html

答: 暂无答案