python - No module named 'PIL' - Stack Overflow
stackoverflow.com › questions › 49247310Mar 13, 2018 · To fix the issue, I uninstalled PIL and Pillow through sudo pip3 uninstall pillow and sudo apt-get purge python3-pil. I then restarted and then used sudo -H pip3 install pillow to reinstall Pillow. The only step I was missing before was rebooting, and not reinstalling PIL afterwards. It seems to have worked without any issues so far.
Python ModuleNotFoundError: No module named PIL | Python ...
cppsecrets.com › usersJun 22, 2021 · Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'PIL'. Pillow: Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. For installing Pillow run the following command in the terminal :