找不到满足 tensorflow==1.15 要求的版本,即使我认为我遇到了他们? [英] Could not find a version that satisfies the requirement tensorflow==1.15 even though I think I meet them?
问题描述
我正在学习教程,为此我使用了 pip install tensorflow.现在我意识到这些年来事情发生了变化并且事情的命名有所不同,因为我收到错误 AttributeError: module 'tensorflow' has no attribute 'gfile'
我听说这是因为事情曾经是不同的在张量流 1.x 中.现在我想尝试使用 pip install tensorflow==1.15
安装 tensorflow 但我收到错误
I am following a tutorial and I used pip install tensorflow for that. Now I realize that things changed over the years and things got named differently because I am getting the error AttributeError: module 'tensorflow' has no attribute 'gfile'
and I heard that is because things used to be different in tensorflow 1.x . Now I want tried to install tensorflow using pip install tensorflow==1.15
but I get the error
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
我真的不知道为什么?有其他人遇到过这种情况吗?
And I don't really know why? Did anybody else experience this?
推荐答案
我猜你正在尝试使用 python 3.8
当 tensorflow 在 1.15
.
I guess you are trying to use python 3.8
which was not officially supported when tensorflow was at version 1.15
.
你可以在3.5
到3.7
或2.7
之间选择python版本,你的问题就可以解决了.
You can choose python version between 3.5
to 3.7
or 2.7
, your issue can be resolved.
您也可以在 pypi 上查看下载文件,没有可用于 tensorflow 1.15
的 cp38 的文件.
You can also check download files on pypi, there are no files available for cp38 for tensorflow 1.15
.
注意:您需要 64 位版本的 Python,以防使用 32 位版本.
这篇关于找不到满足 tensorflow==1.15 要求的版本,即使我认为我遇到了他们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!