[英]Getting Error: ModuleNotFoundError: No module named 'PIL'
I know that question has asked over and over.我知道这个问题已经问过一遍又一遍。 I'm struggling through ages in order to solve it.为了解决这个问题,我一直在苦苦挣扎。
Issue is: I have done pip3 install Pillow
and every kind of combinations with upper or lower case.问题是:我已经完成了pip3 install Pillow
以及各种大写或小写的组合。 (Windows 10) I find the package at site-packages which says 'PIL' but every time when i execute the code from PIL import Image
it is not working and giving me ModuleNotFoundError. (Windows 10)我在 site-packages 上找到了一个包,上面写着“PIL”,但是每次当我from PIL import Image
执行代码时from PIL import Image
它都不起作用并给我 ModuleNotFoundError。 I'm about to lose my mind can anyone help me out for this ?我快要疯了,有人可以帮我解决这个问题吗?
Please try below if it solves your issue:如果它解决了您的问题,请尝试以下操作:
py -m pip list
.For more detail check https://pip.pypa.io/en/stable/cli/pip_list/ If the package is not listed it means it is not installed.尝试使用命令py -m pip list
。有关更多详细信息,请检查https://pip.pypa.io/en/stable/cli/pip_list/如果未列出包,则表示未安装。py -m pip list
.首先检查虚拟环境是否已激活,然后使用相同的py -m pip list
列出包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.