pip install 自定义镜像源加速安装
方法一
通过pip -i
参数 临时指定源地址。
例如:
|
|
方法二
-
编辑配置文件
~/.pip/pip.conf
,如果没有这个文件就手动创建。添加下面配置:
|
|
- 或者使用命令添加:
|
|
pip 国内的一些镜像源地址
- 阿里云 https://mirrors.aliyun.com/pypi/simple/
- 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
- 豆瓣(douban) https://pypi.douban.com/simple/
- 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/