複製鏈接
請複製以下鏈接發送給好友

PIP

(Python包管理工具)

鎖定
pip 是一個現代的,通用的 Python 包管理工具。提供了對 Python 包的查找、下載、安裝、卸載的功能。pip 已內置於 Python 3.4 和 2.7 及以上版本,其他版本需另行安裝。
外文名
pip
最新版本
22.0.3
作    用
提供了對 Python 包的查找、下載功能
概    念
現代的通用的 Python 包管理工具

PIP工具簡介

pip 是一個現代的,通用的 Python 包管理工具 [1]  。提供了對Python 包的查找、下載、安裝、卸載的功能。

PIP功能展示

官方提供的pip 示例
$ pip install requests
$ pip search xml
$ pip show beautifulsoup4
$ pip uninstall requests
在windows系統中通過cmd直接執行命令。
常見的命令
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.)】
參考資料