Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (19k points)

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?

1 Answer

0 votes
by (33.1k points)
edited by

Simply install pillow:

pip install pillow

Hope this answer helps you! For more details, study the Tensorflow Tutorial.

Watch this video to know more about Keras:

Browse Categories

...