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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pip_conf_mirror-0.9.4.tar.gz | 14.7 kB | Without provenance | Details for pip_conf_mirror-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pip_conf_mirror-0.9.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pip_conf_mirror-0.9.4-py2.py3-none-any.whl |
Total release size: 28.8 kB
Release files / pip_conf_mirror-0.9.4.tar.gz
| Download URL | pip_conf_mirror-0.9.4.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79a845ba72442a2d5de34c6607ce02cecb87e2fc0bcc85f452f3c30d848e2d29
|
|
BLAKE2b-256 checksum How to use checksums |
a53bcf3867475e592248418805f0b913312152bcf492e43c589c8e27c9558c32
|
| 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.4-py2.py3-none-any.whl
| Download URL | pip_conf_mirror-0.9.4-py2.py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f0c97fa07eefe9b37b4c6e20395461b67f0b107e9215f21cdb7d2e7ef0a9bcd2
|
|
BLAKE2b-256 checksum How to use checksums |
f2b5043d095e5d81103c35127c0aea385fb878fda3da229ad1034d904ae772e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for pip-conf-mirror 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.