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.3
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.3.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pip_conf_mirror-0.9.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 28.7 kB
Release files / pip_conf_mirror-0.9.3.tar.gz
| Download URL | pip_conf_mirror-0.9.3.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
befd23530215bdaf8a51f1b1d1d0107e206d4fb0fca63ef1f2f2e2dedcacb6d4
|
|
BLAKE2b-256 checksum How to use checksums |
39da41c5b2030f476a4bb64db7b679b15685798452105c533a406e1ea90f156e
|
| 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.3-py2.py3-none-any.whl
| Download URL | pip_conf_mirror-0.9.3-py2.py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
16977155c45d429fa1509a366cd9b2d712a61fcae94fe97eb0a61533cac4df04
|
|
BLAKE2b-256 checksum How to use checksums |
2ed8c673fa86734925f1407c6b078e75644b924aa257fabac04b80f0d9c3054f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|