My OS is Linux Mint 19. I have several versions of Python 3.6, 3.7. My Pillow version is 5.1. I am trying to do from PIL import _imaging but I am getting a problem at 3.7 showing that I can not import it. As follow:
ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
If I run from the terminal with Python 3.6 I am not getting this kind of problem.
Did you install Pillow for the newer Python version?
python3.7 -m pip install Pillow
from PIL import _imaging problem, 3.6 running well and 3.7 not running