conda镜像源
- 清华
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- 中科大
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
pip镜像源
- 阿里云:
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/
pip设置镜像源
- 临时指定pip源
>$ pip install xxx(下载的包名) -i https://pypi.doubanio.com/simple
- 永久设置pip源(linux)
- 在根目录下创建 .pip/pip.conf
[root@localhost ~]$ cd
[root@localhost ~]$ mkdir .pip
[root@localhost ~]$ cd .pip
[root@localhost ~/.pip]$ vim pip.conf
- .pip.conf 写入如下内容
[global]
index-url=http://pypi.douban.com/simple
trusted-host = pypi.douban.com