Importing from Keras:
from keras.preprocessing.sequence import pad_sequences
gives an error:
AttributeError: module 'tensorflow' has no attribute 'name_scope'
I'm using MacOs/Anaconda/Python 3.6:
Keras 2.2.4,
Keras-Applications 1.0.6,
Keras-Preprocessing 1.0.5,
tensorflow 1.12.0,
i've read this thread - doesn't help ((( tried reinstall Anaconda - no effect. But i have some clue, maybe problem connected with Python version?
python --version
gives 3.6.8, but in Anaconda3/lib/ only Python3.7