我试图在我的 32 位 CentOS 6.8 linux 机器上安装 TensorFlow。我用 pip 9.0.1 安装了 python 3.6。然而,当我尝试这个命令时:
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl
我得到了:
tensorflow-0.7.1-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
完整的日志信息粘贴在下面:
tensorflow-0.7.1-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args)
File "/usr/local/python3/lib/python3.6/site-packages/pip/commands/install.py", line 312, in run wheel_cache
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 276, in populate_requirement_set wheel_cache=wheel_cache
File "/usr/local/python3/lib/python3.6/site-packages/pip/req/req_set.py", line 245, in add_requirement wheel.filename
pip.exceptions.InstallationError: tensorflow-0.7.1-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
不确定是什么问题。任何建议或意见将不胜感激!
更新: 我在 64 位 centOS 6.5 上尝试了相同的代码,得到了同样的错误。所以也许我可以得出结论,这与 x86_64 部分无关?
最佳答案
问题是,您使用的是 py3.6 和 32 位。 pip 查看文件名以确定包的构建目的:
tensorflow-0.7.1-cp27-none-linux_x86_64.whl
这个包名称表明它适用于 64 位 linux 系统的 python 2.7。 https://www.python.org/dev/peps/pep-0423/
对于python 3.6,这不是保证的方式,但你可以下载python 3.5的pip包并通过将名称中的所有“35”替换为“36”来重命名它
关于python - TensorFlow:CentOS 上的二进制安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41561902/