ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-cf8a769714f1> in <module> ----> 1 import tensorflow as TF 2 print (TF._version_) ModuleNotFoundError: No module named 'tensorflow' code example

Example 1: ImportError: No module named tensorflow

pip install tensorflow==1.2.0 --ignore-installed

Example 2: ImportError: No module named tensorflow

#if you are using bert its only comaptible with python 2.7/pip2 
#and tensorflow 1.15.0 so you need to install like so
pip2 install tensorflow==1.15.0 --ignore-installed

#also if you have a gpu 
pip2 install tensorflow-gpu==1.15.0 --ignore-installed

Tags:

Misc Example