默认的pip 的源是
https://pypi.python.org/simple/
修改默认配置:
File -> New Projects Settings -> Settings for New Projects -> Pytthon Interpreter -> Python 3.x -> pip(双击) -> Manage Repositories -> +
Show All -> + -> System Interpreter -> 选择Python安装目录/python.exe
点击左下角的Python Packages,点击齿轮进行设置
点击加号进行添加

国内镜像源推荐
阿里 https://mirrors.aliyun.com/pypi/simple/
清华 https://pypi.tuna.tsinghua.edu.cn/simple/
豆瓣 https://pypi.douban.com/simple/
vi ~/.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/