------------恢復內容開始------------
轉自:https://www.cnblogs.com/geeksongs/p/10745419.html
安裝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
豆瓣鏡像安裝
pip install tensorflow-gpu==1.8 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
備注:安裝的時候需要python是64位版本,32位版本則會報錯,筆者本人用一年的時間來才發現了這個錯誤
------------恢復內容結束------------