Ubuntu 17 安装 tensorflow

Ubuntu 17 自带python 3.6 直接用命令安装pip3 install tensorflow 会提示有个模块适合python3.5,并不适合python3.6。

我是这样解决的,我安装了低版本的tensorflow,

从清华大学镜像里下载了低版本的 https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/

选择CPU python36 tensorflow 1.3.0 自动生成以下安装代码,我将pip改成pip3,安装完毕,结果成功了

pip install \
  -i https://pypi.tuna.tsinghua.edu.cn/simple/ \
  https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl
posted @ 2017-12-08 17:36  yisawatbek  阅读(303)  评论(0编辑  收藏  举报