-
检查是否已存在pip.conf文件,若无需手动创建
cd ~/.pip/pip.conf # cd: no such file or directory: ~/.pip/pip.conf # 若出现以上信息则说明无配置文件,需手动创建 mkdir ~/.pip touch ~/.pip/pip.conf
-
换源
编辑pip.conf文件内容[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
其中 https://pypi.tuna.tsinghua.edu.cn/simple 还可以切换成:
https://mirrors.aliyun.com/pypi/simple https://pypi.mirrors.ustc.edu.cn/simple/ https://pypi.douban.com/simple/ https://pypi.tuna.tsinghua.edu.cn/simple/ https://pypi.mirrors.ustc.edu.cn/simple/
-
再次使用pip安装插件包就很快了。



