简体   繁体   English

Python 3.8 ModuleNotFoundError:没有名为“PIL”的模块

[英]Python 3.8 ModuleNotFoundError: No module named 'PIL'

I have just upgaded from 3.7 to 3.8.我刚刚从 3.7 升级到 3.8。

My Script worked perfectly fine, until I have upgraded to 3.8.我的脚本运行良好,直到我升级到 3.8。

I have this line of code:我有这行代码:

from PIL import Image, ImageTk, ImageGrab

And returns me error of this:并返回我的错误:

    from PIL import Image, ImageTk, ImageGrab
ModuleNotFoundError: No module named 'PIL'

uninstall Pillow re-installed it again..卸载Pillow重新安装它再次..

You can try to install from the wheel您可以尝试从轮子安装

pip install Pillow-6.2.1-cp38-cp38-win_amd64.whl

Note: This wheel is for windows 64 bits and cpython 3.8 if you want to install manually for a different system, you have to use another one.注意:此轮子适用于 windows 64 位和 cpython 3.8,如果您想为不同的系统手动安装,则必须使用另一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Keyczar:ModuleNotFoundError:Python 3.8 中没有名为“错误”的模块 - Keyczar: ModuleNotFoundError: No module named 'errors' in Python 3.8 ModuleNotFoundError:没有名为“PIL”的模块,ImageTk - ModuleNotFoundError: No module named 'PIL', ImageTk Python 3.8 pytest-qt ModuleNotFoundError:没有名为“PyQt4”的模块 - Python 3.8 pytest-qt ModuleNotFoundError: No module named 'PyQt4' ModuleNotFoundError:没有名为“django”的模块,具有虚拟环境 Python3.8 - ModuleNotFoundError: No module named 'django', with virtual environment Python3.8 Python 3.8 错误:ModuleNotFoundError:没有名为“pyttsx3”的模块 - Python 3.8 error: ModuleNotFoundError: No module named 'pyttsx3' 无法导入 PIL ModuleNotFoundError: No module named 'PIL' - can not import PIL ModuleNotFoundError: No module named 'PIL' Python - 将图像导入为 PIL_Image ModuleNotFoundError:没有名为“图像”的模块 - Python - import Image as PIL_Image ModuleNotFoundError: No module named 'Image' Heroku PIL ModuleNotFoundError:没有名为“图像”的模块 - Heroku PIL ModuleNotFoundError: No module named 'Image' 获取错误:ModuleNotFoundError:没有名为“PIL”的模块 - Getting Error: ModuleNotFoundError: No module named 'PIL' 如何解决“ModuleNotFoundError: No module named 'PIL'”的问题? - How to fix problem of “ModuleNotFoundError: No module named 'PIL'”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM