To install a specific tensorflow version using pip run the below command.
syntax:
pip install tensorflow==version
Example:
pip install tensorflow==1.15
If you are using gpu then install tensorflow-gpu version by running below command:
pip install tensorflow-gpu==1.15
To find the current tensorflow version read How to find the current tensorflow version.