Issue
I want to use a tensorflow version 1.0.0 which is installed in my virtualenv.
I am importing tensorflow in my jupyter notebook, but global tensorflow version is only getting imported.
how to import the version of tensorflow into jupyter notebook which i installed in virtualenv?
Solution
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.
Answered By - Tensorflow Support
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.