linux 安装tensorflow(gpu版本)
一、安装cuda
具体安装过程见我的另一篇博客,ubuntu16.04下安装配置深度学习环境
二、安装tensorflow
我所采用的是 sudo pip install + 安装包安装的
首先利用pip install tensorflow-gpu==1.2.0(tensorflow的版本号)安装,这个时候,如果网太慢汪汪会导致安装失败,所以我采用了 把url复制到浏览器中,把安装包下载下来,这个时候再利用下面的安装命令安装,
sudo pip install +安装包
TensorFlow 之Faster-RCNN(参考)
$ pip install tensorflow # Python 2.7; CPU support (no GPU support)
$ pip3 install tensorflow # Python 3.n; CPU support (no GPU support)
$ pip install tensorflow-gpu # Python 2.7; GPU support
$ pip3 install tensorflow-gpu # Python 3.n; GPU support
扫描二维码关注公众号,回复:
1464352 查看本文章
三、测试tensorflow是否安装成功
# Python import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))