我是联邦学习的新手,我正试图从TensorFlow联邦开始。在编写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.在安装了这里提到的库的版本之后,我发现与安装的库仍然存在一些内部冲突。还有其他人面临过这个问题吗?如果能在这方面得到一些建议就太好了!
发布于 2022-03-20 04:22:58
您可以尝试以下命令来重置环境:
!pip uninstall tensorflow
!pip uninstall tf-nightly
!pip uninstall tensorflow-federated
!pip install tensorflow
!pip install tensorflow-federated
!pip install tensorflow-federated-nightlyhttps://stackoverflow.com/questions/68269539
复制相似问题