这是开始教程之前需要运行的单元。
#@test {"skip": true}
# tensorflow_federated_nightly also bring in tf_nightly, which
# can causes a duplicate tensorboard install, leading to errors.
!pip uninstall --yes tensorboard tb-nightly
!pip install --quiet --upgrade tensorflow_federated_nightly
!pip install --quiet --upgrade nest_asyncio
!pip install --quiet tb-nightly # or tensorboard, but not both
import nest_asyncio
nest_asyncio.apply()
它给出以下错误:
ERROR: tensorflow 2.4.1 requires tensorboard~=2.4, which is not installed.
ERROR: tensorflow 2.4.1 has requirement gast==0.3.3, but you'll have gast 0.4.0 which is incompatible.
ERROR: tensorflow 2.4.1 has requirement grpcio~=1.32.0, but you'll have grpcio 1.34.1 which is incompatible.
ERROR: tensorflow 2.4.1 has requirement h5py~=2.10.0, but you'll have h5py 3.1.0 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.
需要帮助解决这个问题。我对 Tensorflow 上的库和类不太熟悉。
即使控制台显示有错误,pip 软件包也应该已正确安装。
发生这种情况是因为笔记本使用tensorflow-federated-nightly
,这取决于安装tf-nightly
覆盖基数tensorflow
安装。然而pip
仍然认为 TFF 依赖项会与现在覆盖的 TensorFlow 核心包冲突。
Adding tensorflow
to the !pip uninstall
列表可能会使此错误消失,但笔记本的功能不会改变。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)