更新依赖管理配置,新增使用PyPI镜像源的选项以加速包下载,优化文档以清晰描述镜像源和代理设置,调整相关代码以支持新的配置项。

This commit is contained in:
minecraft1024a
2025-08-13 12:47:09 +08:00
parent d78bf618f9
commit 20b676e4e0
5 changed files with 107 additions and 25 deletions

View File

@@ -261,9 +261,13 @@ auto_install = true
# 安装超时时间(秒)
auto_install_timeout = 300
# 是否使用代理进行包安装
# 是否使用PyPI镜像源推荐可加速下载
use_mirror = true
mirror_url = "https://pypi.tuna.tsinghua.edu.cn/simple" # PyPI镜像源URL如: "https://pypi.tuna.tsinghua.edu.cn/simple"
# 是否使用网络代理(高级选项)
use_proxy = false
proxy_url = "" # 代理URL如: "http://proxy.example.com:8080" 或 "socks5://proxy.example.com:1080"
proxy_url = "" # 网络代理URL如: "http://proxy.example.com:8080"
# pip安装选项
pip_options = [