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