简体   繁体   中英

Python 3.8 ModuleNotFoundError: No module named 'PIL'

I have just upgaded from 3.7 to 3.8.

My Script worked perfectly fine, until I have upgraded to 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..

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM