为了账号安全,请及时绑定邮箱和手机立即绑定

无法 pip install tensorflow(不再)

无法 pip install tensorflow(不再)

宝慕林4294392 2021-09-28 14:55:32
直到最近,我才能够在 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 --versionpip 18.1 from /local/mnt/workspace/tmp/env3/lib/python3.4/site-packages/pip (python 3.4)根据合同,在 Windows 中:C:\tmp>pip --versionpip 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==
查看完整描述

2 回答

?
慕田峪7331174

TA贡献1828条经验 获得超13个赞

从输出判断


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)即可解决问题。


查看完整回答
反对 回复 2021-09-28
?
红颜莎娜

TA贡献1842条经验 获得超13个赞

您可以尝试列出可用版本:


$ 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==


查看完整回答
反对 回复 2021-09-28
  • 2 回答
  • 0 关注
  • 317 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号