使用国内镜像源的方法
阿里云
http://mirrors.aliyun.com/pypi/simple/
中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban)
http://pypi.douban.com/simple/
清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学
http://pypi.mirrors.ustc.edu.cn/simple/
安装numpy(及其他的包库):
使用python2 安装:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade numpy
使用python3 安装:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow
当然,我们可以安装指定版本的包:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow == 1.0.0