pip install tensorflow specific version code example
Example 1: update tensorflow pip
######## for Python 2.7
pip install --upgrade pip
pip install --upgrade tensorflow
######## for Python 3.n
pip3 install --upgrade pip
pip3 install --upgrade tensorflow
Example 2: how to install older version of tensorflow
pip install tensorflow=="version you want to install"
Example 3: installing a specific version of tensorflow
pip install tensorflow==2.0.0