ModuleNotFoundError No module named PIL
This error occurs when the Python Imaging Library (PIL) module is not installed on your system.
To resolve this error, you can try installing the Pillow library, which is a fork of the PIL library and provides the same functionality. Open your command prompt or terminal and run the following command:
pip install pillow
If you are using a virtual environment, make sure it is activated before running the command.
After installing Pillow, you should be able to import the PIL module without any issues
原文地址: http://www.cveoy.top/t/topic/iVSm 著作权归作者所有。请勿转载和采集!