pip依存関係の表示_Pipで古い依存関係をリストする

1676 ワード

pip依存関係の表示
In the past, if you wanted to review your installed pip packages to see if there are updates available, you either had to use tools like pip-tools or check all of them manually.
以前は、インストールされているpipパッケージを表示して使用可能な更新があるかどうかを確認するには、pip-toolsなどのツールを使用するか、手動でこれらのツールをすべてチェックする必要がありました.
But since version 1.3 (released on 2013-03-07), pip supports the checking of dependencies with the new list command. In contrast to pip freeze, the primary idea of the list command is to list and analyze installed packages in a human readable (instead of machine parseable) format.
しかし、1.3版(2013-03-07リリース)以来、pipは新しいlistコマンドを使用して依存項目を検査することをサポートしている.pip凍結とは逆に、listコマンドの主な考え方は、機械的に解析可能ではなく、人間が読むことができるフォーマットでインストールされたパッケージをリストし、分析することである. $ pip freeze django-unchained==1.0.1 requests==1.1.0 wsgiref==0.1.2 $ pip list django-unchained (1.0.1) requests (1.1.0) wsgiref (0.1.2) The best thing about the new command is that you can check packages for updates and list only specific packages:
newコマンドについて最も良いことは、パッケージの更新を確認し、特定のパッケージのみをリストできることです. List Options: -o, --outdated List outdated packages (excluding editables) -u, --uptodate List uptodate packages (excluding editables) -e, --editable List editable projects. -l, --local If in a virtualenv that has global access, do not list globally-installed packages. In summary, you can now show outdated dependencies with a single pip command:
要するに、単一pipコマンドを使用して、古い依存項目を表示できます. $ pip list --outdated requests (Current: 1.1.0 Latest: 1.2.0) 翻訳:https://www.pybloggers.com/2013/04/list-outdated-dependencies-with-pip/
pip依存関係の表示