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