ImportError: cannot import name _imaging February 9, 2023 by Tarik I had the same problem and I solved that by upgrading this package using the command below: pip install -U Pillow