python - No module named 'PIL' - Stack Overflow
https://stackoverflow.com/questions/4924731013.03.2018 · In my case the problem had to do with virtual environments. The python program ran in a virtual environment, but I called pip install Pillow from a normal command prompt. When I ran the program in a non-virtual environment, from PIL import Image worked. It also worked when I called venv/scripts/activate before calling pip install Pillow.So apparently PIL is not found when installed …