安裝tensorflow時,如果使用直接安裝速度相對較慢,採取清華大學的鏡像會提高速度。
GPU版本:
pip install tensorflow-gpu==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple
CPU版本:
pip install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple
其他模塊(numpy\mxnet):
pip install XXXX -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install XXXX==1.2.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple