0

I'm on windows but even in google Collab I cant import it. and I do have proper internet.

from tensorflow_federated import python as tff
Ynjxsjmh
  • 28,441
  • 6
  • 34
  • 52

1 Answers1

2

You can install the released TensorFlow Federated Python package using as shown below

!pip install --upgrade tensorflow-federated

Then you can import required modules as shown below

from tensorflow_federated import python as tff

Note: Currently you can install only on Ubuntu and macOS.

For more details you can refer you can refer here

  • note that there may be other issues using colab; in particular, see the `nest_asyncio` usage in TFF's [tutorials](https://www.tensorflow.org/federated/tutorials/federated_learning_for_image_classification#before_we_start) – Keith Rush Apr 26 '21 at 03:25