美文网首页
腾讯云ubuntu安装tensorflow

腾讯云ubuntu安装tensorflow

作者: WangGavin | 来源:发表于2017-11-08 13:51 被阅读33次

1.安装python

首先我的云主机系统是ubuntu 64位的,预装有python2.7

2.安装python-pip和python-dev

$ sudo apt-get install python-pip python-dev

3.安装TensorFlow

pip安装软件是默认先读到内容,在安装,又因为我的云主机内存只有1个G,带宽也只有1Mbps,所有必须设置no-cache安装。可以这样
先执行

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

再执行

sudo pip --no-cache-dir install --upgrade $TF_BINARY_URL

0.8.0是tensorflow的版本,正常的话等一会儿就安装好了


image.png

相关文章

网友评论

      本文标题:腾讯云ubuntu安装tensorflow

      本文链接:https://www.haomeiwen.com/subject/jlnemxtx.html