2017-03-22 45 views
1

我在Ubuntu 14.04 LTS上從源碼構建了TensorFlow。 我收到以下錯誤:tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl在此平臺上不受支持輪轂

tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl在此平臺上不受支持。

$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package 

... 

cc1plus: warning: unrecognized command line option "-Wno-self-assign" [enabled by default] 
Target //tensorflow/tools/pip_package:build_pip_package up-to-date: 
    bazel-bin/tensorflow/tools/pip_package/build_pip_package 
INFO: Elapsed time: 3222.284s, Critical Path: 2243.74s 
[email protected]:~/tensorflow$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg 
Tue Mar 21 22:17:06 UTC 2017 : === Using tmpdir: /tmp/tmp.JVDbpc8IYs 
~/tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles ~/tensorflow 
~/tensorflow 
/tmp/tmp.JVDbpc8IYs ~/tensorflow 
Tue Mar 21 22:17:07 UTC 2017 : === Building wheel 
warning: no files found matching '*.dll' under directory '*' 
warning: no files found matching '*.lib' under directory '*' 
~/tensorflow 
Tue Mar 21 22:17:29 UTC 2017 : === Output wheel file is in: /tmp/tensorflow_pkg 

$ sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl 
tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. 
Storing debug log for failure in /home/ubuntu/.pip/pip.log 

[email protected]:~$ python -m pip install --upgrade pip 
Requirement already up-to-date: pip in ./anaconda/lib/python2.7/site-packages 
[email protected]:~$ man pip 
[email protected]:~$ pip --version 
pip 9.0.1 from /home/ubuntu/anaconda/lib/python2.7/site-packages (python 2.7) 

vi /home/ubuntu/.pip/pip.log: 

tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. 
Exception information: 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 257, in run 
    InstallRequirement.from_line(name, None)) 
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 168, in from_line 
    raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename) 
UnsupportedWheel: tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. 

我得到了同樣的錯誤了protobuf的輪:

sudo -H pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.0.0b2.post2-cp27-none-linux_x86_64.whl 
protobuf-3.0.0b2.post2-cp27-none-linux_x86_64.whl is not a supported wheel on this platform. 

回答

0

難道是你的點子已經過時?嘗試python -m pip install --upgrade pip

這也可以幫助檢查日誌中/home/ubuntu/.pip/pip.log

+0

pip 9.0.1(請參閱上述附加信息)。 – dbl001

+0

這可能是一個32位系統,並且你正在安裝一個64位的車輪? –

+0

ubuntu @ ip-10-0-1-213:/ usr/lib/nvidia-375/bin $ uname -a Linux ip-10-0-1-213 3.13.0-92-generic#139 -Ubuntu SMP星期二6月28日20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux – dbl001

0

須藤檢索到的3.4版本 '點子'(而不是2.7版本)的:

Ubuntu的@ IP-10-0-1-152 :〜/ tensorflow $ sudo pip --version pip 9.0.1 from /usr/local/lib/python3.4/dist-packages/pip-9.0.1-py3.4.egg(python 3.4)

0

cp27tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl表示它是python-2.7。

相關問題