Providing the solution here (Answer Section) even though it is present in Comments Section (Thanks to @jdehesa) for the benefit of the Community.
When we have multiple Virtual Environments
and if each Virtual Environment
has a different version of Tensorflow
, in order to use a specific Tensorflow Version
, we have to activate the respective Virtual Environment
.
The command for Activating the Virtual Environment
using Conda
for different Operating Systems
are shown below:
# Activate the Virtual Environment. Conda Version > 4.6 and Windows OS
conda activate TF_2_VE
# Activating Virtual Environment, Conda Version < 4.6 and Windows OS
activate TF_2_VE
# Activating Virtual Environment, Conda Version < 4.6 and Linux and Mac OS
source activate TF_2_VE
To know how to Activate a Virtual Environment
using Python
, refer this Stack Overflow Issue.