I have installed anaconda3 and create a new environment using
conda create -n tf2
then i activate the environment by
conda act