【问题标题】:Issues in setting up the environment for TensorFlow Federated on Colab在 Colab 上为 TensorFlow Federated 设置环境的问题
【发布时间】:2021-07-06 11:13:13
【问题描述】:

我是联邦学习的新手,我正在尝试开始使用 TensorFlow Federated。在 Colab 上学习“图像分类的联合学习”教程时,我尝试安装 TensorFlow Federated,但遇到了以下错误:

ERROR: tensorflow 2.5.0 requires tensorboard~=2.5, which is not installed.
ERROR: tensorflow 2.5.0 has requirement grpcio~=1.34.0, but you'll have grpcio 1.37.1 which is incompatible.
ERROR: tensorflow 2.5.0 has requirement keras-nightly~=2.5.0.dev, but you'll have keras-nightly 2.6.0.dev2021062500 which is incompatible.
ERROR: spacy 2.2.4 has requirement tqdm<5.0.0,>=4.38.0, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: pymc3 3.11.2 has requirement cachetools>=4.2.1, but you'll have cachetools 3.1.1 which is incompatible.
ERROR: fbprophet 0.7.1 has requirement tqdm>=4.36.1, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: tensorflow-privacy 0.6.1 has requirement attrs>=21.2.0, but you'll have attrs 19.3.0 which is incompatible.

安装这里提到的库的版本后,我发现安装的库仍然存在一些内部冲突。有没有其他人遇到过这个问题?能得到一些关于这方面的指示会很棒!

【问题讨论】:

  • 笔记的其余部分是否无法运行?这可能是 stackoverflow.com/questions/66182614/… 的副本
  • @ZacharyGarrett 是的,在导入 TensorFlow Federated 时存在问题,因为未从 Keras 导入 版本
  • 能否使用引发错误的 Python 代码以及异常和堆栈跟踪来扩展问题?

标签: tensorflow tensorflow-federated federated-learning


【解决方案1】:

您可以尝试以下命令重置环境:

!pip uninstall tensorflow
!pip uninstall tf-nightly
!pip uninstall tensorflow-federated
!pip install tensorflow
!pip install tensorflow-federated
!pip install tensorflow-federated-nightly

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-17
    • 1970-01-01
    • 2016-11-25
    • 2020-12-18
    • 1970-01-01
    • 2020-01-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多