首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TensorFlow联邦Colab环境设置中的几个问题

TensorFlow联邦Colab环境设置中的几个问题
EN

Stack Overflow用户
提问于 2021-07-06 11:13:13
回答 1查看 302关注 0票数 0

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

代码语言:javascript
复制
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.

在安装了这里提到的库的版本之后,我发现与安装的库仍然存在一些内部冲突。还有其他人面临过这个问题吗?如果能在这方面得到一些建议就太好了!

EN

回答 1

Stack Overflow用户

发布于 2022-03-20 04:22:58

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

代码语言:javascript
复制
!pip uninstall tensorflow
!pip uninstall tf-nightly
!pip uninstall tensorflow-federated
!pip install tensorflow
!pip install tensorflow-federated
!pip install tensorflow-federated-nightly
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68269539

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档