Pycharm永久换源代码
方法:通过命令配置
运行以下命令将默认源设置为阿里云镜像:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
根据操作系统不同,编辑或创建对应的配置文件:
Linux/MacOS: 配置文件路径:~/.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
本文由 tree 发布于 2026年2月13日,采用 CC BY-NC-SA 4.0 许可,转载请注明出处。
评论
评论加载中…