2017-01-10 149 views
0

我試圖在我的32位CentOS 6.8 linux機器上安裝TensorFlow。我有Python 3.6安裝與PIP 9.0.1。然而,由於我試試這個命令:TensorFlow:CentOS上的二進制安裝錯誤

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部分無關?

回答

0

您的機器/ os是32位的,但tensorflow-0.7.1-cp27-none-linux_x86_64.whl只適用於64位機器。 我不能在tensorflow主頁上找到32位版本tensorflow包:

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

這似乎解決它是嘗試在64位機和64位操作系統的唯一途徑。

+0

替換所有的「35」 S重命名它是的,我在64位機器上試過它,我得到了相同的錯誤 – Eugene225

+0

是完全相同的日誌? – Yang

+0

是的,我得到完全相同的日誌信息 – Eugene225

1

問題是,您正在使用py3.6和32位。 PIP看文件名弄清楚包是爲建:

tensorflow-0.7.1-cp27-none-linux_x86_64.whl 

這個包的名字說,這是爲Python 2.7 64位Linux系統。 https://www.python.org/dev/peps/pep-0423/

爲Python 3.6,它不是一個保證的方式,但你可以只下載PIP封裝爲Python 3.5,並通過在名稱爲「36」