ModuleNotFoundError: No module named 'PIL'

错误:line 3, in <module>
    from PIL import Image

ModuleNotFoundError: No module named 'PIL'


Solution:

    Run the command: pip install pillow


If running this command shows Requirement already satisfied: Pillow in c:\program files (x86)\python\lib\site-packages (3.4.2)

Indicates that it has been installed,

At this time, you can uninstall to get the latest pillow, run the command: pip uninstall pillow

Then run pip install pillow

just fine



Copyright notice: original article, please indicate the source for reprinting

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324651843&siteId=291194637