python - No module named 'PIL' - Stack Overflow
https://stackoverflow.com/questions/4924731012.03.2018 · Alright, I found a fix . 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.