无法 pip install tensorflow(不再)

直到最近,我才能够在 Windows 上使用 python 3.6.7 时安装 tensorflow 1.5.0 包。现在我不能,从下面的“来自版本”的消息看来,似乎根本没有可用的 tensorflow 包。


支持最近停止了吗?


在 linux 中,tensorflow 有多种形式。我试过的 pip 版本 9.0.3、10.0.1 和 18.1 就是这种情况。


例如:


(env3)xxx@xxx-linux:/local/mnt/workspace/tmp$ pip install tensorflow==

Collecting tensorflow==

  Could not find a version that satisfies the requirement tensorflow== (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)

No matching distribution found for tensorflow==

(env3)xxx@xxx-linux:/local/mnt/workspace/tmp$ pip --version

pip 18.1 from /local/mnt/workspace/tmp/env3/lib/python3.4/site-packages/pip (python 3.4)

根据合同,在 Windows 中:


C:\tmp>pip --version

pip 18.1 from c:\users\xxx\appdata\local\programs\python\python36-32\lib\site-packages\pip (python 3.6)


C:\tmp>pip install tensorflow==

Collecting tensorflow==

  Could not find a version that satisfies the requirement tensorflow== (from versions: )

No matching distribution found for tensorflow==



宝慕林4294392
浏览 318回答 2
2回答

慕田峪7331174

从输出判断python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"('cp36', 'cp36m', 'win32')您有受支持的 Python 版本,但安装了 32 位发行版(平台标记是win32;对于 Windows 上的 64 位 Python,它应该是win_amd64)。Tensorflow 仅适用于 64 位发行版(PyPI 上的所有轮子都有macosx_10_11_x86_64适用于 MacOS、manylinux1_x86_64Linux 或win_amd64Windows 的平台标签)。安装 64 位 Python(例如 from python-3.6.8-amd64.exe)即可解决问题。

红颜莎娜

您可以尝试列出可用版本:$ pip.exe install tensorflow==Collecting tensorflow==   Could not find a version that satisfies the requirement tensorflow== (from ver sions: 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.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.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0)No matching distribution found for tensorflow==
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python