Python 无法pip安装tensorflow(不再)

Python 无法pip安装tensorflow(不再),python,windows,tensorflow,pip,Python,Windows,Tensorflow,Pip,直到最近,在windows上使用python 3.6.7时,我才能够安装tensorflow 1.5.0包。现在我不能,从下面的“from version”消息来看,似乎根本没有可用的tensorflow包 支持最近停止了吗 考虑到micha137和hoefling的评论,一些附加信息: 在linux中,tensorflow有多种版本。我尝试过的pip版本9.0.3、10.0.1和18.1就是这种情况 例如: (env3)xxx@xxx-linux:/local/mnt/workspace/tm

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

支持最近停止了吗

考虑到micha137和hoefling的评论,一些附加信息:

在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==
一些补充资料:

C:\tmp>pip install -vvv tensorflow. -
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-ephem-wheel-cache-fmlkvkla
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-req-tracker-oijk67__
Created requirements tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-install-tt2d7lx0
Cleaning up...
Removed build tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Invalid requirement: 'tensorflow.'
接着是漫长的追踪

以及:

您可以尝试:


从产量来看,

python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
('cp36', 'cp36m', 'win32')

您有受支持的Python版本,但安装了32位发行版(平台标记为
win32
;对于Windows上的64位Python,它应该是
win\u amd64
)。Tensorflow仅适用于64位发行版(MacOS的平台标签为
macosx\u 10\u 11\u x86\u 64
,Linux的平台标签为
manylinux1\u x86\u 64
,Windows的平台标签为
win\u amd64
)。安装64位Python(例如从)就可以了。

请发布setuptools导入pep425tags;打印(pep425tags.get_supported()[0])中的
Python-c的输出。
pip安装-vvv tensorflow
@hoefling请参阅更新的帖子。看起来您已经安装了32位Python,您能检查一下吗
python-c“导入sys;打印('64位'如果sys.maxsize>2**32,否则为'32位')”
Tensorflow仅适用于64位发行版。@hoefling谢谢!!!!不知怎的,我无意中安装了32位的flavor。您想将此作为答案提供,以便我将其标记为已批准的答案吗?
$ 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==
python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
('cp36', 'cp36m', 'win32')