PyCharm设置pip国内源(镜像)

PyCharm创建新项目时很慢,停留在下载pip的状态。换成国内源(镜像)可提速。

修改默认配置:

File -> New Projects Settings -> Settings for New Projects -> Pytthon Interpreter -> Python 3.x -> pip(双击) -> Manage Repositories -> +

* 如果没有Python 3.x选项,点击右边的选项创建:

Show All -> + -> System Interpreter -> 选择Python安装目录/python.exe

修改项目配置:

File -> Settings -> Project: xxx -> Python Interpreter -> pip(双击) -> Manage Repositories -> +

国内源(镜像)列表:

https://mirrors.aliyun.com/pypi/simple     阿里云
https://pypi.douban.com/simple            豆瓣
https://pypi.tuna.tsinghua.edu.cn/simple   清华大学
https://pypi.hustunique.com/               华中科技大学
https://pypi.mirrors.ustc.edu.cn/simple    中国科技大学
https://pypi.sdutlinux.org/                山东理工大学

* 添加其中一个,然后删除原来的官方源(否则仍然会慢)

附:

命令行设置国内源(镜像)

https://www.cnblogs.com/live41/p/14394601.html

原文地址:https://www.cnblogs.com/live41/p/15796173.html