下载 requests 及其依赖的离线包,保存到当前目录的 wheels 文件夹
1
uv pip download requests -d ./wheels
替换为实际的 wheels 文件夹路径
uv pip install --no-index --find-links=/path/to/wheels requests
参数详情:
no-index: 不访问 PyPI 索引,仅从本地查找。
find-links: 指定本地离线包所在目录。
The End