Shell/Bash: import tensorflow as tf modulenotfounderror: no module named 'tensorflow' Example

By

Shell/Bash Example: This is the "import tensorflow as tf modulenotfounderror: no module named 'tensorflow'" Example. compiled from many sources on the internet by SimpleTutorials.org

import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow'

conda create -n tensorflow python=3.5
activate tensorflow
pip install --ignore-installed --upgrade tensorflow

ImportError: No module named tensorflow

pip install tensorflow==1.2.0 --ignore-installed

No module named 'tensorflow docs'

pip install git+https://github.com/tensorflow/docs

ModuleNotFoundError: No module named 'tensorflow.examples'

!pip install -q git+https://github.com/tensorflow/examples.git

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


* Summary: This "import tensorflow as tf modulenotfounderror: no module named 'tensorflow'" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others