首先,建議在anaconda中創建虛擬環境,教程已寫,參考上一篇
下載之前建議設置pip清華源(用以提速,可百度)
設置下載源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow-gpu==1.4.0
pip install tensorflow (默認安裝cpu版本)
安裝完成后,
命令行中,敲擊 python,回車
import tensorflow,回車
print(tf.__version__) #打印當前tensorflow版本