【发布时间】:2020-09-26 21:50:30
【问题描述】:
我想安装 tensorflow 库的 1.5.4 版本,但即使 PyPi site lists 这个版本,也无法通过 pip 获得该软件包。我一定遗漏了一些明显的东西。感谢您的帮助。
我尝试了以下方法:
$ docker run -ti python:2.7 /bin/bash
root@b3b8132c3ed3:/# pip install --upgrade pip
[...]
Successfully installed pip-20.2.3
root@b3b8132c3ed3:/# pip install --upgrade setuptools
[...]
Successfully installed setuptools-44.1.1
root@b3b8132c3ed3:/# pip install tensorflow==1.15.4
[...]
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.4 (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0)
ERROR: No matching distribution found for tensorflow==1.15.4
更新:
最终的答案是 TensorFlow 项目截至 January 2020 does not support Python 2.7 anymore
【问题讨论】:
-
我认为这可能与TensorFlow not found using pip 重复。如果您不同意,请告诉我,我将删除我的投票。
-
感谢您的建议。不幸的是,这不是问题。
标签: python python-2.7 tensorflow