I am getting such an error in the keras codes ,wrote in pycharm.Tried the solutions on the internet but I couldn’t find a solution. Do you have any suggestions?
Please install the tensorflow and pillow using
pip install tensorflow and
pip install pillow then do a little changes as below while importing libraries to fix this error:
import numpy as np from PIL import Image from tensorflow import keras from tensorflow.keras.applications import resnet50 from tensorflow.keras.preprocessing import image
Note: Please mention the error code in your question not in the form of a screenshot which will be easy to replicate the issue.
Answered By – TFer2