Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

ImportError('Could not import PIL.Image. ' working with keras-ternsorflow

Asked by Clare Matthews Jul 15, 2021 1.4K views 1 answer
Share

About this question

Im following some lectures from lynda.com about deep learning using Keras-TensorFlow in a PyCharmCE enviroment and they didnt had this problem. I get this error working :

raise ImportError('Could not import PIL.Image. ' ImportError: Could not import PIL.Image. 

The use of array_to_img requires PIL.

I have checked others get the same error, but for me installing pillow using pip with the command pip install Pillow doesnt solve anything.

MacBook-Pro-de-Rogelio:~ Rogelio$ pip install Pillow Requirement already satisfied: Pillow in ./anaconda3/lib/python3.6/site-packages MacBook-Pro-de-Rogelio:~ Rogelio$

Im following some lectures from lynda.com about deep learning using Keras-TensorFlow and they didnt had this problem. Any solution?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.