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

标签 tensorflow

我在 Ubuntu 14.04 LTS 上从源代码构建了 TensorFlow。 我收到以下错误:

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
ubuntu@ip-10-0-1-32:~/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

ubuntu@ip-10-0-1-202:~$ python -m pip install --upgrade pip
Requirement already up-to-date: pip in ./anaconda/lib/python2.7/site-packages
ubuntu@ip-10-0-1-202:~$ man pip
ubuntu@ip-10-0-1-202:~$ 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 wheel 时遇到了同样的错误:

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.

最佳答案

会不会是你的 pip 过时了?试试 python -m pip install --upgrade pip

它也可能有助于检查 /home/ubuntu/.pip/pip.log 中的日志

关于tensorflow-1.0.1-cp27-cp27mu-linux_x86_64.whl 在此平台上不受支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42959629/

相关文章:

python - 如何索引张量并更改值

python - 如何为 TensorFlow 中的不同层或变量设置不同的学习率?

python - 自定义丢失问题 : inputs to eager execution function cannot be keras symbolic tensors but found

python - 具有正映射的线性回归

python - 使用第一个形状元素作为 None 创建 Tensorflow 2.0 输入

numpy - Tensorflow 和 OpenCV 中的双线性插值实现

python - Tensorflow:恢复模型后如何更改优化器?

使用 TPU 的 TensorFlow 对象检测训练错误

tensorflow - Colab资源和Self-Attention(分配张量时出现OOM)

TensorFlow Estimator 跟踪时间线?