Python pip命令解析
pip用于安装卸载维护Python各种包
安装Python时默认安装了Pip,如果在cmd下无法使用pip,则可能是没有将其所在目录添加至环境变量Path中。
pip show pip 查看pip版本
python -m pip install --upgrade pip 升级pip
pip list 查看已经安装的包
pip install +包名 安装各种包
pip install --upgrade +包名 升级各种包
pip uninstall +包名 卸载各种包
pip -h pip帮助文件
pip --help
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 Search PyPI for packages.搜索包
wheel Build wheels from your requirements.
hash Compute hashes of package archives.计算包的hash值
completion A helper command used for command completion.
help Show help for commands.