简体   繁体   English

TensorFlow:CentOS上的二进制安装错误

[英]TensorFlow: binary installation error on CentOS

I was trying to have TensorFlow installed on my 32-bit CentOS 6.8 linux machine. 我试图在我的32位CentOS 6.8 linux计算机上安装TensorFlow。 I have python 3.6 installed with pip 9.0.1. 我已经用pip 9.0.1安装了python 3.6。 However as I try this command: 但是,当我尝试此命令时:

pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl

I got: 我有:

tensorflow-0.7.1-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.

The full log info are pasted below: 完整的日志信息粘贴在下面:

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.

Not sure what the problem could be. 不知道可能是什么问题。 Any suggestion or advice would be greatly appreciated! 任何建议或意见将不胜感激!


Update: I have tried the same code on a 64bit centOS 6.5, getting the same error. 更新:我在64位centOS 6.5上尝试了相同的代码,但得到了相同的错误。 So maybe I can conclude this has nothing to do with the x86_64 part? 所以也许我可以得出结论,这与x86_64部分无关?

The issue is, you are using py3.6 and 32 bit. 问题是,您正在使用py3.6和32位。 pip looks at filenames to figure out what the package is built for: pip会查看文件名,以确定该软件包是针对什么构建的:

tensorflow-0.7.1-cp27-none-linux_x86_64.whl

This package name says it is for python 2.7 for a 64 bit linux system. 这个软件包名称说它用于64位linux系统的python 2.7。 https://www.python.org/dev/peps/pep-0423/ https://www.python.org/dev/peps/pep-0423/

for python 3.6, it is not a guaranteed way, but you may download the pip package for python 3.5 and rename it by replacing all "35"s in the name with "36" 对于python 3.6,这不是保证的方法,但是您可以下载python 3.5的pip包,并通过将名称中的所有“ 35”替换为“ 36”来重命名它

Your machine/os is 32-bit, however tensorflow-0.7.1-cp27-none-linux_x86_64.whl only fit 64-bit machine. 您的机器/操作系统是32位的,但是tensorflow-0.7.1-cp27-none-linux_x86_64.whl仅适合64位的机器。 And I can't find 32-bit version tensorflow package in tensorflow home page: 我在tensorflow主页上找不到32位版本的tensorflow软件包:

https://www.tensorflow.org/get_started/os_setup https://www.tensorflow.org/get_started/os_setup

It seems the only way to solve it is try a 64-bit machine and 64-bit os. 看来解决该问题的唯一方法是尝试使用64位计算机和64位操作系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM