Skip to main content
 首页 » 编程设计

python之Ubuntu 16.04 LTS 中的 tensorflow 安装错误

2024年09月07日33落叶

我有 Ubuntu 16.04LTS 32 位操作系统的虚拟机,我正在尝试使用 virtualenv 安装(仅限 cpu 的 python3.5)tensorflow,步骤如下:

https://www.tensorflow.org/install/install_linux

当我到达第 1 步时5 和 6 发生错误:

如果我使用 $ pip3 install --upgrade tensorflow 会发生此错误:

Could not find a version that satisfies the requirement tensorflow (from versions: )

No matching distribution found for tensorflow

虽然 pip 版本 > 8.1

如果我使用:

$ export tfBinaryURL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp35-cp35m-linux_x86_64.whl 
 
$ pip3 install --upgrade tfBinaryURL 

发生此错误:

tensorflow-1.4.0-cp35-cp35m-linux_x86_64 is not a supported wheel on this platform.

我该如何解决这个问题???

请您参考如下方法:

TensorFlow 二进制文件仅适用于 64 位平台,而您安装的是 32 位 Linux。您真的应该安装 64 位 Linux 而不是 32 位 Linux。