PyPI 使用帮助

用途

Python 软件包索引及发行文件。

临时使用

在已有 Python 环境中指定索引地址:

python -m pip install --index-url https://mirrors.lzu.edu.cn/pypi/simple/ requests

长期配置

写入当前用户的 pip 配置:

python -m pip config --user set global.index-url https://mirrors.lzu.edu.cn/pypi/simple/

查看当前配置:

python -m pip config debugpython -m pip config debug

只为当前虚拟环境设置索引时,将 --user 改为 --site。删除这项设置时,用相同作用域运行 python -m pip config --user unset global.index-url 或 python -m pip config --site unset global.index-url。

相关文档

pip 配置文档

本站由兰州大学开源社区支持创办并维护。

镜像管理器使用 tunasync。本站网页基于 tuna/mirror-web,源码见 LZUOSS/mirror-web。

根据相关法律法规,本站不对欧盟用户提供服务。

clipboard clipboard-check bars envelope github