在 PowerPC ppc64le 上 Tensorflow 安装失败

Tensorflow installation fails on PowerPC ppc64le

我正在尝试在 Rhel 7.6 ppc64le 上安装 tensorflow。我安装了 Python 3.6.3。

错误:

pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

在此问题上需要一些帮助。
环境:Rhel 7.6 - ppc64le
python:3.6.3

它失败了,因为它在 pypi 上找不到适合您的设置的任何东西。如果您检查 tensorflow pypi page,您将看到只有 wheel 文件可用,并且仅适用于基于 x86 或 x64 的系统。对于 ppc64le,有 none.

虽然你有一些选择:

  1. 从源代码构建,参见 the docs
  2. 使用 miniconda,因为在支持您的架构的默认频道中有 tensorflow 的 conda 包

您可以尝试使用 Anaconda 安装 TensorFlow,Anaconda 有时可以在较旧的 CPU 上安装 TensorFlow。

> conda create -n tf_env tensorflow=2