0

Im having problems installing an older version of tensorflow on colab. I tried the solution suggested on this page here, without any success. Any suggestions?

Link to colab: https://colab.research.google.com/drive/1F7jJ-sJXX78ldAt-ri2VEgto7pZOctI6?usp=sharing

Nil
  • 3
  • 1

2 Answers2

0

You can use this for TF1

%tensorflow_version 1.x
import tensorflow as tf

You can check the version

print(tf.__version__)
korakot
  • 37,818
  • 16
  • 123
  • 144
0

You can install specific version of Tensorflow by running this cell:

import tensorflow as tf
if tf.__version__ != "2.9.0":
  !pip install -U -q tensorflow==2.9.0
print(tf.__version__)

This is not the last step yet, for this to completely take effect, click on

runtime > restart runtime

Then re-run the above cell, it will apply the new version of tensorflow

Ujjwal Mk
  • 1
  • 1