ModuleNotFoundError: No module named 'tensorflow.python._pywrap_tfe' code example

Example 1: ModuleNotFoundError: No module named '_pywrap_tensorflow'

C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl

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