最近在安装tensorflow相关东西,发现清华大学的镜像特别好用,特此记录下来
pip 安装的时候如果安装特别慢,可以加上"-i https://pypi.tuna.tsinghua.edu.cn/simple"
比如pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple,即可信赖清华大学镜像去安装numpy这个包。
cpu版本的tensorflow镜像地址:https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/
python2.7安装1.5 cpu版本的tensorflow:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/tensorflow-1.5.1-cp27-none-linux_x86_64.whl
gpu版本的tensorflow镜像地址:https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/gpu/
python3.6安装1.4 gpu版本的tensorflow gpu版本例子:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/gpu/tensorflow_gpu-1.4.1-cp36-cp36m-linux_x86_64.whl