我试图在google上安装Tensorflow,但是与版本有冲突,如果我安装以前的版本或者类似的错误,我要么会得到这个错误。
module tensorflow_federated.python has no attribute federated_computation
如果我想安装新版本,它会在安装过程中给出“这需要这个版本,但您有这个版本”。我很困惑。有没有一种简单的方法来使用Tensorflow联合学习?我试着在本地安装它,但也不起作用。为什么用起来这么难?
如果我卸载所有软件包并再次安装它们,它将给出上述错误。
如果我试图导入它,忽略图片中的错误,它会给我一个新版本的错误。
'type' object is not subscribable
和版本20的错误
module 'tensorflow_federated.python' has no attribute 'federated_computation'
发布于 2022-05-30 01:35:40
问题是
!pip install --quiet tensorflow-federated==0.20.0
from tensorflow_federated import python as tff
用途:
import tensorflow_federated as tff
https://stackoverflow.com/questions/72428249
复制相似问题