Anaconda 安装tensorflow(GPU)

1、安装

如果是安装CPU模式的tensorflow,只要输入一下代码就可以了

pip3 install tensorflow          #python3
pip install tensorflow #python2

 下面是gpu模式的安装过程

create a conda environment called tensorflow:

# Python 2.7
$ conda create -n tensorflow python=2.7

# Python 3.4
$ conda create -n tensorflow python=3.4

# Python 3.5
$ conda create -n tensorflow python=3.5

 激活这个tensorflow环境

source activate tensorflow
原文地址:https://www.cnblogs.com/lindaxin/p/7900381.html