从Tensorflow 2.x降级至1.15

2024-10-04 01:30:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我遇到了一个无法降级到tensorflow 1.15的问题

到目前为止,我有最新版本的tf,但我遇到了'AttributeErrorModule'tensorflow' has no attribute 'contrib'' 错误。我已经读到,这可以通过降级到TF1.15来修复,但是当我运行pip3 install tensorflow==1.15时,我得到了:"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.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3) 错误:No matching distribution found for tensorflow==1.15"

我应该如何修复属性错误


Tags: installno版本tftensorflow错误pip3not