安裝tensorflow時,如果使用直接安裝速度相對較慢,采取清華大學的鏡像會提高速度。
GPU版本安裝方法:
pip install tensorflow-gpu==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple
或
pip install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple
備注:安裝的時候需要python是64位版本,32位版本則會報錯,筆者本人用一年的時間來才發現了這個錯誤。