Skip to main content

user-pip v0.0.2

本库使用MIT许可证,在分发时请保留署名!谢谢!

本库尚在开发阶段,可能有bug,如有bug请及时反馈,谢谢。

python的pip是一个库,但是官方不建议直接调用,本库使用subprocess标准库执行命令的方式来进行pip的python调用,调用时调用名为user_pip

要求

  1. Python版本大于等于3.8

安装方法

pip install user-pip

更新日志

版本 日志
v0.0.2 添加了n个功能,修复若干bug
v0.0.1 库创立

报错码

报错码 报错码翻译
2*000001 未确认卸载
2*000002 尝试卸载pip

使用示例

关于install的命令

  1. 安装库:
install("wxpython","pip3","https://mirrors.ctyun.cn/pypi/simple/")

参数1:库名 参数2:pip对应的python版本 参数3:镜像源

  1. 安装pip:
pip_install("python3","pip3")

参数1:python版本 参数2:pip对应的python版本

  1. 安装指定版本:
install_version("wxpython","4.3.2","pip3","https://mirrors.ctyun.cn/pypi/simple/")

参数1:库名 参数2:版本 参数3:pip对应的python版本 参数4:镜像源

  1. 安装whl:
install_whl(r"C:/abc.whl","pip3")

参数1:whl文件地址 参数2:pip对应的python版本

关于uninstall的命令

  1. 卸载库:
uninstall("wxpython","pip3",True)

参数1:库名 参数2:pip对应的python版本 参数3:确认删除

关于upgrade的命令

  1. 更新库:
upgrade("wxpython","pip3","https://mirrors.ctyun.cn/pypi/simple/")

参数1:库名 参数2:pip对应的python版本 参数3:镜像源

  1. 查看可更新库:
pip_upgrade_list("pip3","https://mirrors.ctyun.cn/pypi/simple/")

参数1:pip对应的python版本 参数2:镜像源

  1. 更新pip:
pip_upgrade("python3","pip3")

参数1:python版本 参数2:pip对应的python版本

关于config的命令

  1. 写入设置
config_set("global", "index-url", "https://pypi.tuna.tsinghua.edu.cn/simple","pip3")

参数1:节 参数2:键 参数3:值 参数4:pip对应的python版本

  1. 读取设置
config_get("global", "index-url","pip3")

参数1:节 参数2:键 参数3:pip对应的python版本

  1. 删除设置
config_unset("global", "index-url","pip3")

参数1:节 参数2:键 参数3:pip对应的python版本

pip其他的命令

  1. 查看库:
pip_list("pip3")

参数1:pip对应的python版本

  1. 检查包依赖冲突:
pip_check("pip3")

参数1:pip对应的python版本

  1. 显示已安装包的信息:
show_package("wxpython","pip3")

参数1:库名 参数2:pip对应的python版本

Metadata

Release files for user-pip 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for user-pip 0.0.2
File Size Uploaded Provenance Actions
user_pip-0.0.2.tar.gz 3.4 kB Without provenance Details for user_pip-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for user-pip 0.0.2
File Interpreter ABI Platform Actions
user_pip-0.0.2-py3-none-any.whl Python 3 none any Details for user_pip-0.0.2-py3-none-any.whl

Total release size: 7.0 kB

Release files / user_pip-0.0.2.tar.gz

Download URL user_pip-0.0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
343225e21d7979fe99f69d19370d732a263e105d15041853f7420feecc952202
BLAKE2b-256 checksum
How to use checksums
2f951607bc20b1d1e2a376bcdddeafbdcea1a12c93c9ebd88c3bf4ce6feae60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / user_pip-0.0.2-py3-none-any.whl

Download URL user_pip-0.0.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08e5e9d070b641ba4e0d2fc9fe5160f7da796f858f38ba5cc0b555dc3566e96e
BLAKE2b-256 checksum
How to use checksums
e934bb6defc3bf67108b6d60f130a54aea44a40e91b0a8cb2f1dffeeb66023c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for user-pip 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page