I am using macOS and installed pillow in the terminal with code pip3 install pillow
and I got the version 8.0.1.
But I cannot import it in Pycharm. I typed from PIL import Image
and an error message show ModuleNotFoundError: No module named 'PIL'
. then I changed PIL to pillow from pillow import Image
, it works but cannot find Image class.
How can I fix it?