Skip to content
Sign upLog in
← Back to Community
library issue on python
Profile icon

Hi there,
For some reason, the PIL library sometimes is not imported. I just have to log out, wait and start again some other time.
Is this issue knowne ? is there a fix ?
Here is the error message I get in such cases. This very same code works fine in other occasions.

Python 3.7.4 (default, Jul 9 2019, 00:06:43) [GCC 6.3.0 20170516] on linux Traceback (most recent call last): File "", line 1, in <module> from PIL import Image ModuleNotFoundError: No module named 'PIL' 
Profile icon
Profile icon
Profile icon
Profile icon

PIL used to work for me, but is no longer working. This is a major bummer!

Profile icon

To get PIL to work launch the shell and then pip install Pillow. However, you will have to do this every single time you want to use the PIL Library since everything is wiped from the shell once you are done using it.

I really hope this work around does not get removed. I need PIL to work for a course I teach and really do not want to have to find another online workspace!