PIP CONF MIRROR
Make it easy for pip/uv/pdm/poetry to change mirror
Python工具包之一行命令换源
Install
pip install pip-conf-mirror
Or:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip-conf-mirror
Or:
pipx install pip-conf-mirror
Or:
uv tool install pip-conf-mirror
Usage
pip-conf-mirror --pip qinghua # 给pip/pipx换清华源
pip-conf-mirror --uv aliyun # 给uv换阿里源
pip-conf-mirror --pdm tencent # 给pdm换腾讯源
pip-conf-mirror --poetry huawei # 给poetry换华为源
pip-conf-mirror --tool=pip douban # 给pip/pipx换豆瓣源
给uv换好源之后,也可以这样用:
uvx pip-conf-mirror --pip qh # 给pip更换清华源
展示可选的镜像源:
pip-conf-mirror --list
- 注:名称为
_ecs结尾的,只能用在他们自家的服务器上
From github
- Change source of pip to mirrors.cloud.tencent.com, worked at both Linux and Windows(Run with Git Bash).
curl https://raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py|python
- Install it from github:
pip install --user "pip-conf-mirror @git+https://github.com/waketzheng/carstino"
- Clone source from github and run by python:
git clone https://github.com/waketzheng/carstino
# Or:
#git clone git@github.com:waketzheng/carstino.git
python carstino/pip_conf.py --pip qh
Metadata
Release files for pip-conf-mirror 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pip_conf_mirror-0.9.2.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pip_conf_mirror-0.9.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 28.5 kB
Release files / pip_conf_mirror-0.9.2.tar.gz
| Download URL | pip_conf_mirror-0.9.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7eaa2121c811af7b5963adba856c1926a4770276e344fdcf4c169fca98b8949
|
|
BLAKE2b-256 checksum How to use checksums |
931e2e6d59325f2af8031dbe9e1c795e51e3009b082f9c48103b17cc774e14b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pip_conf_mirror-0.9.2-py2.py3-none-any.whl
| Download URL | pip_conf_mirror-0.9.2-py2.py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
72823596ef58ad01b4d0396238517ca2066668455cd68a9fd3081fe98f6416fd
|
|
BLAKE2b-256 checksum How to use checksums |
6ca61f3e85b88062640dcce262f9e32b3ebf30135dba42d35353072cc89c95e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|