Ubuntu/macOS下更换pip/pip3安装源
2020-01-17 本文已影响0人
slytherinwyne
cd ~
mkdir .pip
touch pip.conf
sudo vim pip.conf
输入内容如下:(豆瓣镜像源,可换为其他,如清华大学镜像源)
[global]
timeout=6000
index-url=http://pypi.douban.com/simple/
[install]
use-mirrors=true
mirrors=http://pypi.douban.com/simple/
trusted-host=pypi.douban.com