优化PyCharm国内pip源提高下载和更新速度

Python 库国内镜像知名且访问速度较快的包括清华大学、中国科技大学、阿里云、豆瓣,这里分享下各自的 pip 源地址:

pip 清华源:https://pypi.tuna.tsinghua.edu.cn/simple
pip 阿里云源:http://mirrors.aliyun.com/pypi/simple/
pip 中科大源: https://pypi.mirrors.ustc.edu.cn/simple/
pip 豆瓣源:http://pypi.douban.com/simple/

选择一个国内源即可,小帅用的是清华源。


PyCharm 修改 pip 源

以 Ubuntu 20.04.2.0 LTS 为例,MAC、Windows 类似。

1.在 Preferences 里找到 Project Interpreter,点击任意一个已经装好的 Package 进入 Available Packages 页面:


  1. 点击 Manage Repositores 修改 pip 源:

上一篇
下一篇