pip换清华源

临时使用

Bash
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple some-package

设为默认:

升级 pip:

Bash
python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip

将清华源设为默认:

Bash
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

参考资料

  1. PyPI 软件仓库 – 清华大学开源软件镜像站

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注