federated icon indicating copy to clipboard operation
federated copied to clipboard

Environment set up error, Google Colab

Open tcy63 opened this issue 3 years ago • 2 comments

Describe the bug https://colab.sandbox.google.com/github/tensorflow/federated/blob/v0.34.0/docs/tutorials/building_your_own_federated_learning_algorithm.ipynb#scrollTo=ZrGitA_KnRO0

In the [Beforeyou start] section, the cell produces the following result:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pymc 4.1.4 requires cachetools>=4.2.1, but you have cachetools 3.1.1 which is incompatible. google-colab 1.0.0 requires portpicker~=1.3.1, but you have portpicker 1.5.2 which is incompatible.

Environment (please complete the following information): Python 3 Google Compute Engine backend

Expected behavior The environment should be correctly set up according to the instruction.

Additional context I tried other tutorials about tensorflow federated learning and they all ran into the same problem.

tcy63 avatar Aug 31 '22 02:08 tcy63

I am facing the same issue.

VidushiVashishth avatar Sep 13 '22 12:09 VidushiVashishth

Same.

VasundharaAgarwal avatar Sep 14 '22 17:09 VasundharaAgarwal

  1. You need to use a Google colab runtime that does not contain incompatible python packages. You can either create your own runtime or use the default runtime and uninstall all the offending packages. Or you could ignore the errors and continue running the colab.
  2. Google colab is running Python 3.7 and TFF requires Python 3.9 or greater.

michaelreneer avatar Nov 04 '22 17:11 michaelreneer