3

I have a colab notebook which was running tf1.15.0. I need to downgrade it to 1.14.0. In a cell, it run the following:

!pip uninstall tensorflow==1.15.0
!pip install tensorflow==1.14.0
import tensorflow as tf
print(tf.__version__)

However, it outputs:

> 1.15.0

What am I doing wrong please?

CS

chikitin
  • 762
  • 6
  • 28

2 Answers2

3

IF you have import tensorflow cell before uninstall, you may need to restart notebook to make it effective.

IF you have not, make sure you are running the correct pip in the same python environment as the notebook, such as:

import sys
!{sys.executable} -m pip install xx
donglinjy
  • 1,104
  • 6
  • 14
2

Do you have TensorFlow-GPU installed in the system? Because this is the same issue I was facing earlier, so try downgrading TensorFlow-GPU.

pip install tensorflow-gpu==1.14

or any other version of tensorflow-gpu.

bdx
  • 3,316
  • 4
  • 32
  • 65
DECODER
  • 21
  • 3