打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Ubuntu14.04 安装 tensorflow

Ubuntu14.04安装tensorflow

谷歌开源了tensorflow深度学习框架,当然要学习一番

上tensorflow官网tensorflow.org学习一番安装流程,发现可以直接用pip安装

于是在虚拟机上装了Ubuntu14.04,按照官网给的步骤

# For CPU-only version$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  • 1
  • 2

在ternimal里

$ sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  • 1

然而提醒我python-pip没有安装

$ sudo apt-get install python-pip
  • 1

问题解决

再次运行

$ sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  • 1

时出现类似这样的错误

ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
  • 1

往上翻发现建议我安装python-dev,估计是python-dev没有安装的问题
于是

$ sudo apt-get install python-dev$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  • 1
  • 2
  • 3

搞定,现在在python里可以import tensorflow

最后,血泪教训,centOS7装tensorflow比Ubuntu麻烦多了

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
TensorFlow学习笔记(一补):使用Anaconda安装TensorFlow
tensorflow的Virtualenv安装方式安装
TensorFlow入门:Ubuntu 配置 TensorFlow
TensorFlow 安装教程
Ubuntu 14.04
从零开始:深度学习软件环境安装指南
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服