A fast pip tool with domestic mirror sources
Project description
qpip
qpip 是一个对 python -m pip 的轻量封装,可以在安装 Python 包时自动使用更快的国内镜像源,包括阿里云、清华、豆瓣。
功能特性
- 始终使用当前 Python 解释器调用
pip,避免直接依赖独立的pip可执行文件。 - 仅在
install、download、wheel、index、search这类需要联网的子命令上自动注入镜像源。 - 如果用户已经显式传入
--index-url、--extra-index-url、--find-links或--no-index,不会强行覆盖。 - 同时支持
qpip tsinghua install numpy和qpip --mirror douban install pandas两种写法。 - 支持
qpip i requests这样的pip install简写。 - 支持
python -m qpip运行方式,并提供--dry-run用于预览最终命令。 - 命令行帮助、错误提示和镜像列表。
安装
pip install qpip
使用方法
qpip install requests
qpip i requests
qpip tsinghua install numpy
qpip tsinghua i numpy
qpip --mirror douban install pandas
qpip --dry-run install fastapi
qpip --list-mirrors
qpip --help
python -m qpip install rich
如果你要把以 - 开头的参数直接传给 pip,请在前面加上 --:
qpip -- --version
默认镜像
qpip 默认使用 ali。如果你想修改默认镜像,可以设置环境变量 QPIP_DEFAULT_MIRROR:
set QPIP_DEFAULT_MIRROR=tsinghua
qpip install httpx
支持的镜像源
ali:https://mirrors.aliyun.com/pypi/simple/tsinghua:https://pypi.tuna.tsinghua.edu.cn/simple/douban:https://pypi.doubanio.com/simple/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qpip-0.1.5.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
qpip-0.1.5-py3-none-any.whl
(8.0 kB
view details)
File details
Details for the file qpip-0.1.5.tar.gz.
File metadata
- Download URL: qpip-0.1.5.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd8c52aed2e5c716e7ffef2c352b8af7ba6840a7d0a5654f0ef022f830ae38c
|
|
| MD5 |
a4d6ea00bd06f392bec5066f64efad27
|
|
| BLAKE2b-256 |
d0bb6ed4687a059402fe521726b63c1b4650d7984d2691f57ee8ea3cab169298
|
File details
Details for the file qpip-0.1.5-py3-none-any.whl.
File metadata
- Download URL: qpip-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f0965ae58e59e5331b8eafd35653cca14579974283b5bf85e8b67d56ce4f59
|
|
| MD5 |
e67842f13945637073d14e8a930fa65c
|
|
| BLAKE2b-256 |
2a154ff9403c28c11b3c731bfd351a554d951ebecdb5e1000d3bd773812bfa9f
|