PIP是一個(gè)現(xiàn)代的,通用的Python包管理工具。提供了對(duì)Python包的查找、下載、安裝、卸載的功能。
功能
官方提供的pip示例
$ pip install requests
$ pip search XML
$ pip show beautifulsoup4
$ pip uninstall requests
常見(jiàn)的命令
Usage:
pip [options]
Commands:
install【安裝包安裝(Install packages.)】
download【下載下載包(Download packages.)】
uninstall【卸載卸載包(Uninstall packages.)】
freeze【凍結(jié)按需求格式安裝的包的輸出(Output installed packages in requirements format.)】
list【列表列出已安裝的包(List installed packages.)】
show【顯示已安裝軟件包的信息(Show information about installed packages.)】
check【檢查已安裝的軟件包是否具有兼容的依賴項(xiàng)(Verify installed packages have compatible dependencies.)】
config【配置管理本地和全局配置(Manage local and global configuration.)】
search【搜索PyPI查找包(Search PyPI for packages.)】
wheel【根據(jù)您的需求構(gòu)建輪子(Build wheels from your requirements.)】
hash【包存檔的哈希計(jì)算值(Compute hashes of package archives.)】
completion【用于命令完成的輔助命令(A helper command used for command completion.)】
debug【顯示對(duì)調(diào)試有用的信息(Show information useful for debugging.)】
help【幫助顯示命令的幫助(Show help for commands.)】
參考資料 >