-1
from PIL import image
ImportError: cannot import name 'image' from 'PIL' (<path>9/lib/python3.9/site-packages/PIL/__init__.py)

pip install, conda install all tested.

May anyone experienced same thing?

Talha Tayyab
  • 8,111
  • 25
  • 27
  • 44
  • 1
    Does this answer your question? [Why can't Python import Image from PIL?](https://stackoverflow.com/questions/26505958/why-cant-python-import-image-from-pil) – questionto42 Jun 10 '22 at 20:28
  • also here https://stackoverflow.com/questions/64998199/cannot-import-name-imaging-from-pil – questionto42 Jun 10 '22 at 20:34

2 Answers2

0

Use this instead

from PIL import Image

for additional help please refer this - https://pillow.readthedocs.io/en/stable/reference/Image.html

JAbr
  • 312
  • 2
  • 12
0

just update the packages and resolved!