python3.7.6 MacOS Mojave
I get the following error:
ModuleNotFoundError: No module named 'tensorflow.contrib'
It's most likely due to a high version of tensorflow.
You can downgrade tensorflow by the following methods.
terminal
$pip install tensorflow==1.14
The following error may be the same cause, so if you see it, try the above remedy.
AttributeError: module 'tensorflow' has no attribute 'contrib'
AttributeError: module 'tensorflow' has no attribute 'placeholder'
AttributeError: module 'tensorflow' has no attribute 'Variable'
The specifications of tensorflow have changed too much, isn't it? I hope my mistakes help someone.
Recommended Posts