1.打开pycharm编译器 按照“文件->设置->python解释器->+->管理仓库”,打开以下界面
2.选中原有路径并按“-”删除,添加以下镜像源路径之一(一般官网路径较慢):
阿里云:http://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
官网:https://pypi.python.org/simple/