PIP :Python包管理工具

更新时间:2024-09-20 15:16

PIP是一个现代的,通用的Python包管理工具。提供了对Python包的查找、下载、安装、卸载的功能。

功能

官方提供的pip示例

$ pip install requests

$ pip search XML

$ pip show beautifulsoup4

$ pip uninstall requests

常见的命令

Usage:

pip [options]

Commands:

install【安装包安装(Install packages.)】

download【下载下载包(Download packages.)】

uninstall【卸载卸载包(Uninstall packages.)】

freeze【冻结按需求格式安装的包的输出(Output installed packages in requirements format.)】

list【列表列出已安装的包(List installed packages.)】

show【显示已安装软件包的信息(Show information about installed packages.)】

check【检查已安装的软件包是否具有兼容的依赖项(Verify installed packages have compatible dependencies.)】

config【配置管理本地和全局配置(Manage local and global configuration.)】

search【搜索PyPI查找包(Search PyPI for packages.)】

wheel【根据您的需求构建轮子(Build wheels from your requirements.)】

hash【包存档的哈希计算值(Compute hashes of package archives.)】

completion【用于命令完成的辅助命令(A helper command used for command completion.)】

debug【显示对调试有用的信息(Show information useful for debugging.)】

help【帮助显示命令的帮助(Show help for commands.)】

参考资料

免责声明
隐私政策
用户协议
目录 22
0{{catalogNumber[index]}}. {{item.title}}
{{item.title}}
友情链接: