【发布时间】:2021-04-21 01:36:48
【问题描述】:
我正在学习一个教程,为此我使用了 pip install tensorflow。现在我意识到多年来事情发生了变化,事情的命名也不同了,因为我收到了错误AttributeError: module 'tensorflow' has no attribute 'gfile',我听说这是因为 tensorflow 1.x 中的事情过去有所不同。现在我想尝试使用pip install tensorflow==1.15 安装 tensorflow,但我得到了错误
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0)
ERROR: No matching distribution found for tensorflow==1.15
我真的不知道为什么?有其他人经历过吗?
【问题讨论】:
标签: python python-3.x tensorflow pip tensorflow2.0