On Jupyter Notebook, with code
tf.__version__
I'm getting '1.14.0'
But, on command prompt, with:
pip show tensorflow
i'm getting 2.2.0
I would like to use, Tensorflow 2.2.0 in Jupyter Notebook, how it can be done?
On Jupyter Notebook, with code
tf.__version__
I'm getting '1.14.0'
But, on command prompt, with:
pip show tensorflow
i'm getting 2.2.0
I would like to use, Tensorflow 2.2.0 in Jupyter Notebook, how it can be done?
Thinking about it, the easiest way to make sure that the right version of TF is installed under the right version of python may be to install from inside a jupyter notebook with
import subprocess
import sys
subprocess.check_call([sys.executable, "-m",
"pip", "install", "--user", "tensorflow==2.2.0"])
That should make sure it's available to the correct version of python.
(See https://stackoverflow.com/a/50255019/401059 on using pip from python.)
You can do this to force it use the same version
with the current Notebook kernel
.
But first you'd have to find the full path to your Kernel'spip
Note that in the figure below, asv
is the name of the conda environment that I created, make sure to change it to your defined name.