pip check¶
用法¶
python -m pip check [options]
py -m pip check [options]
描述¶
验证已安装的软件包是否具有兼容的依赖关系。
示例¶
如果所有依赖关系都兼容
$ python -m pip check No broken requirements found. $ echo $? 0
C:\> py -m pip check No broken requirements found. C:\> echo %errorlevel% 0
如果缺少软件包
$ python -m pip check pyramid 1.5.2 requires WebOb, which is not installed. $ echo $? 1
C:\> py -m pip check pyramid 1.5.2 requires WebOb, which is not installed. C:\> echo %errorlevel% 1
如果软件包版本错误
$ python -m pip check pyramid 1.5.2 has requirement WebOb>=1.3.1, but you have WebOb 0.8. $ echo $? 1
C:\> py -m pip check pyramid 1.5.2 has requirement WebOb>=1.3.1, but you have WebOb 0.8. C:\> echo %errorlevel% 1