【Anaconda3】【tensorflow-gpu】anaconda3下安装tensorflow-gpu

操作系统:Centos7

1. 安装Anaconda3

  • 下载链接:https://www.anaconda.com/download/#linux
  • 安装指导:https://docs.anaconda.com/anaconda/install/linux

安装完后新开一个bash

2. 安装tensorflow-gpu
我这里需要安装指定版本的tensorflow-gpu版本(tensorflow-gpu 1.4.1)

  • 执行以下命令查看当前所有tensorflow-gpu版本:
[root@localhost tf-openpose]# anaconda search -t conda tensorflow-gpu
Using Anaconda API: https://api.anaconda.org
Packages:
     Name                      |  Version | Package Types   | Platforms       | Builds    
     ------------------------- |   ------ | --------------- | --------------- | ----------
     aaronzs/tensorflow-gpu    |    1.6.0 | conda           | linux-64, win-64 | py35h8ac8084_0, py36_1, py36_0, py36hbec5d8f_0, py36h7b11560_0, py35h14e71af_0, py35_0, py35_1
                                          : TensorFlow helps the tensors flow
     anaconda/tensorflow-gpu   |    1.4.1 | conda           | linux-ppc64le, linux-64, win-64 | py36_4, np111py27_0, py35cuda8.0cudnn6.0_0, py27_4, py35cuda7.5cudnn6.0_0, 0, py35cuda8.0cudnn5.1_0, py36cuda7.5cudnn5.1_0, py27cuda7.5cudnn5.1_0, py27cuda7.5cudnn6.0_0, np112py35_0, np112py27_0, py27cuda8.0cudnn5.1_0, np111py35_0, py27cuda8.0cudnn6.0_0, py36cuda7.5cudnn6.0_0, np112py36_0, np111py36_0, py36cuda8.0cudnn5.1_0, py36cuda8.0cudnn6.0_0, py35_4, py35cuda7.5cudnn5.1_0
                                          : TensorFlow is a machine learning library.
     anaconda/tensorflow-gpu-base |    1.4.1 | conda           | linux-64        | py27cuda8.0cudnn6.0_1, py27cuda8.0cudnn6.0_0, py27ha7e2fe3_0, py27h01caf0a_0, py36h01caf0a_0, py35h01caf0a_0, py35cuda8.0cudnn6.0_1, py36ha7e2fe3_0, py36cuda8.0cudnn6.0_1, py35cuda8.0cudnn6.0_0, py36cuda8.0cudnn6.0_0, py35ha7e2fe3_0
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     cjj3779/tensorflow-gpu    |    1.4.0 | conda           | linux-64, win-64 | py35hc6fb95a_0, py35h14e71af_0, py36hbec5d8f_0, py36h6bf4e57_0
                                          : TensorFlow helps the tensors flow
     engility/tensorflow-gpu-base |    1.4.1 | conda           | linux-64        | py36h77f5d31_2, py27h77f5d31_1, py36h77f5d31_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_cio_testing/tensorflow-gpu |          | conda           | linux-64        | py35cuda7.5cudnn5.1_0, py36_0, py36_3, py36_2, py36_4, py36cuda7.5cudnn5.1_0, py35cuda8.0cudnn6.0_0, py27cuda8.0cudnn5.1_0, py27_4, py27_3, py27_2, py27_1, py27_0, py35cuda7.5cudnn6.0_0, np113py35_0, 0, py35cuda8.0cudnn5.1_0, py36cuda8.0cudnn5.1_0, np111py27_0, py27cuda7.5cudnn5.1_0, py27cuda7.5cudnn6.0_0, np112py35_0, np112py27_0, np113py36_0, np111py35_0, py27cuda8.0cudnn6.0_0, py36cuda7.5cudnn6.0_0, np112py36_0, np111py36_0, np113py27_0, py36cuda8.0cudnn6.0_0, py35_4, py35_2, py35_3, py35_0
                                          : TensorFlow is a machine learning library.
     jjh_cio_testing/tensorflow-gpu-base |    1.5.0 | conda           | linux-64        | py27cuda8.0cudnn6.0_1, py27cuda8.0cudnn6.0_0, py27ha7e2fe3_0, py35ha7e2fe3_0, py36cuda8.0cudnn6.0_1, py35h01caf0a_0, py35cuda8.0cudnn6.0_1, py36ha7e2fe3_0, py36h77f5d31_0, py35cuda8.0cudnn6.0_0, py36cuda8.0cudnn6.0_0, py27h01caf0a_0, py36h01caf0a_0
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_cio_testing/tensorflow-gpu-broadwell-base |          | conda           | linux-64        | py27hc5f3c7c_1, py36hc5f3c7c_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_cio_testing/tensorflow-gpu-haswell-base |          | conda           | linux-64        | py36h9b5fe53_1, py27h9b5fe53_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_cio_testing/tensorflow-gpu-ivybridge-base |          | conda           | linux-64        | py36h41896c3_1, py27h41896c3_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_cio_testing/tensorflow-gpu-sandybridge-base |          | conda           | linux-64        | py36h5bae7ea_1, py27h5bae7ea_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     jjh_ppc64le/tensorflow-gpu |    1.2.1 | conda           | linux-ppc64le   | py27cuda8.0cudnn6.0_0, np112py36_0, np112py35_0, py35cuda8.0cudnn6.0_0, py36cuda8.0cudnn6.0_0, np112py27_0
                                          : TensorFlow is a machine learning library
     jjhelmus/tensorflow-gpu   |    1.0.1 | conda           | linux-64        | np112py35_5, np112py36_5, py27_2, np112py27_5
                                          : TensorFlow is a machine learning library.
     jjhelmus/tensorflow-gpu-base |    1.3.0 | conda           | linux-64        | py27cuda8.0cudnn6.0_1, py35cuda8.0cudnn6.0_1
                                          : TensorFlow is a machine learning library, base GPU package, tensorflow only.
     marta-sd/tensorflow-gpu   |    1.2.0 | conda           | linux-64        | py27_1, py36h1323ef4_2, py36_1, py27_0, py35hddb9974_2, py27h4f63904_2, py35_0, py35_1
     nehaljwani/tensorflow-gpu |    1.1.0 | conda           | win-64          | np112py36_0, np112py35_0
                                          : TensorFlow is a machine learning library
Found 16 packages

Run 'anaconda show ' to get installation details
  • 选择源anaconda/tensorflow-gpu并安装指定版本1.4.1
    1)可以执行以下命令查看该源的安装信息:
[root@localhost tf-openpose]# anaconda show anaconda/tensorflow-gpu
Using Anaconda API: https://api.anaconda.org
Name:    tensorflow-gpu
Summary: TensorFlow is a machine learning library.
Access:  public
Package Types:  conda
Versions:
   + 1.0.1
   + 1.1.0
   + 1.2.1
   + 1.3.0
   + 1.4.1

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/anaconda tensorflow-gpu

2)执行以下命令安装tensorflow-gpu 1.4.1版本

[root@localhost tf-openpose]# conda install --channel https://conda.anaconda.org/anaconda tensorflow-gpu=1.4.1

3. 安装opencv3

conda install -c menpo opencv3

你可能感兴趣的:(【Anaconda3】【tensorflow-gpu】anaconda3下安装tensorflow-gpu)