pip 檢查¶
用法¶
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