xxxxxxxxxx
!pip install tensorflow
#OR from CMD
pip install tensorflow
#But if it is not working, then you need to create a separate environment, with:
xxxxxxxxxx
pip install tensorflow_datasets
# Then Use this import
import tensorflow_datasets
mnist = tensorflow_datasets.load('mnist')
xxxxxxxxxx
#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