Skip to main content
 首页 » 编程设计

python之使用 Debian 8 VirtualBox 安装 Tensorflow 的 Anaconda 失败

2025年04月02日30birdshome

我正在尝试安装 Tensorflow。

我为此创建了一个全新的 Debian 8 VirtualBox。按照说明 here我使用 Python 3 下载并安装了 Anaconda。

我为 Tensorflow 创建了一个 conda 环境并激活了它。

尝试 pip install Tensorflow 时失败:

(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl 

错误是

not a supported wheel on this platform

我发现了一个类似的帖子,其中有人在使用 Python 2.7 和 VMware 时遇到了这个问题,但他们的解决方案对我不起作用(并且对另一个评论说他们正在使用 VirtualBox 的人也不起作用)。

我还尝试指定 pip3 和 pip3.5 而不仅仅是 pip。

请您参考如下方法:

这似乎是来自以下 issue 的“已知”问题.您应该可以下载哪个释义 https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl 并更改名称.whl 到 tensorflow-0.8.0-py3-none-linux_x86_64.whl 并正确安装。 github documentation 发生了变化Tensorflow 将 python 版本设置为 3.4 而不是 3.5。但是,似乎此更改尚未实现 Tensorflow.org's documentation

# Python 3.4 
$ conda create -n tensorflow python=3.4