Cant install tensorflow-privacy on colab {urgent}

HI all ,

I cant install cant install tensorflow-privacy on base colab(free)

it used to work few months before,

any advice how to resolve this error

link :

import tensorflow_privacy
ImportError Traceback (most recent call last)
in <cell line: 1>()
----> 1 import tensorflow_privacy
2 from tensorflow_privacy.privacy.analysis import compute_dp_sgd_privacy
3 import tensorflow as tf
4 import numpy as np
5 import pandas as pd

8 frames
/usr/local/lib/python3.10/dist-packages/tensorflow_estimator/python/estimator/estimator.py in
32 from tensorflow.python.checkpoint import checkpoint_management
33 from tensorflow.python.checkpoint import graph_view
—> 34 from tensorflow.python.distribute import estimator_training as distribute_coordinator_training
35 from tensorflow.python.eager import context
36 from tensorflow.python.eager import monitoring

ImportError: cannot import name ‘estimator_training’ from ‘tensorflow.python.distribute’ (/usr/local/lib/python3.10/dist-packages/tensorflow/python/distribute/init.py)

solved it with

# !pip install tensorflow-privacy
# !pip install --upgrade tensorflow-estimator==2.3.0
# !pip install --upgrade tensorflow==2.14.0
1 Like