我尝试在我的系统上安装tensorflow,但是收到了以下错误:
tensorflow-0.5.0-cp27-none-linux_x86_64.whl不是此平台上支持的滚轮
Exception Information captured in pip.log file:-
/ home / gansai / tensorflow / bin / pip于2015年11月11日星期三00:19:05运行
tensorflow-0.5.0-cp27-none-linux_x86_64.whl不是此平台上支持的滚轮 .
异常信息:Traceback(最近一次调用最后一次):
文件“/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/basecommand.py”,第122行,主状态= self.run(options,args)
文件“/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/commands/install.py”,第269行,运行InstallRequirement.from_line(name,None))
文件“/home/gansai/tensorflow/local/lib/python2.7/site-packages/pip/req.py”,第168行,在from_line中引发UnsupportedWheel(“%s不是此平台上支持的滚轮 . ”% wheel.filename)
UnsupportedWheel:tensorflow-0.5.0-cp27-none-linux_x86_64.whl不是此平台上支持的滚轮 .
我该怎么做才能安装tensorflow并开始试验呢?
3 回答
我猜pip3正在用于安装
它可以通过使用pip2.7来解决
我按照here中的步骤进行操作
希望它可以帮助你:)
tensorflow-0.5.0-cp27-none-linux_x86_64.whl不是此平台上支持的滚轮
上述错误是因为尝试将TensorFlow安装到32位系统上 . 正如您所看到的,轮子是linux_x86_64,它打算安装在64位上 .
要采取的步骤: -
直接二进制安装
安装Debian 64位操作系统 . 从torrent(http://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/)下载debian 64位ISO
安装python-dev .
apt-get install python-dev
安装tensor-flow
python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
基于Docker的安装
安装Debian 64位操作系统 . 从torrent(http://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/)下载debian 64位ISO
在Debian上安装Docker . 按照http://docs.docker.com/engine/installation/debian/#debian-jessie-80-64-bit中提到的步骤进行操作
运行数据流的docker容器 .
docker run -it b.gcr.io/tensorflow/tensorflow
. 按照http://tensorflow.org/get_started/os_setup.md#docker-based_installation中提到的步骤进行操作这里要注意的要点是,截至目前,64位系统支持用于tensorflow的python wheel,如
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
中所共享它可能是无关的,但我在新的Ubuntu Linux 14.04 LTS(64位)上与tensorflow-0.7.1-cp34-none-linux_x86_64.whl有同样的错误,这有助于:
您可以像这样调用tensorflow脚本:
在研究时,我经常阅读有关使用wget和重命名文件的内容,但最新版本已经过时,请参见此处:https://github.com/tensorflow/tensorflow/issues/1142#issuecomment-186740120