ImportError: cannot import name 'ImageDataGenerator' from 'tensorflow.python.keras.preprocessing.image' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/preprocessing/image.py) site:stackoverflow.com code example
Example: ImportError: cannot import name 'image_dataset_from_directory' from 'tensorflow.keras.preprocessing.image' (C:\Users\zeewo\AppData\Roaming\Python\Python38\site-packages\tensorflow\keras\preprocessing\image\__init__.py)
pip install tf-nightly