当我试图在我的ubuntu桌面上安装tensorflow cpu版本时,遇到了一个问题。
我试了两次:
1.pip3 install tensorflow
错误在这里:
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
2.pip3 install tensorflow-1.8.0-cp36-cp36m-manylinux1_x86_64.whl
tensorflow-1.8.0-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.
我搜索了很多,发现可能与pip版本,体系结构.etc有关。
然而,在我的桌面上,这些似乎是正确的,下面是我的检查:
148 wni@wni-GE62-2QC:~⟫ uname -i
x86_64
wni@wni-GE62-2QC:~⟫
wni@wni-GE62-2QC:~⟫ cat /etc/issue
Ubuntu 16.04.4 LTS \n \l
wni@wni-GE62-2QC:~⟫
wni@wni-GE62-2QC:~⟫ pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
wni@wni-GE62-2QC:~⟫
wni@wni-GE62-2QC:~⟫
wni@wni-GE62-2QC:~⟫ python
Python 3.6.5 (default, May 12 2018, 17:43:57)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>>
>>> import struct
>>> struct.calcsize('P')
8
此外,pip3搜索tensorflow可以找到tensorflow 1.8.0。
Um...anyone知道怎么回事吗?
谢谢。
编辑通过从源代码重新安装Python3.6.5来解决。第一次的原因还不清楚。
发布于 2018-05-13 23:52:50
是的,tensorflow,可怕的东西来安装!您最好使用虚拟环境,并使用tf夜间包与本地需求(因为它是对各种其他软件包的版本,痛苦地出现在脑海中)。
https://stackoverflow.com/questions/50325336
复制相似问题