pip list DEPRECATION

CentOS8 にて pip list コマンドを実行すると DEPRECATION: ~ エラーが発生する場合の対処方法

# pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

デフォルトのフォーマットは将来的にカラムに切り替わります。
この警告を無効にするには –format=(legacy|columns) を使用してください
または pip.conf の [list] セクションで format=(legacy|columns) を定義してください

とのことですので
/etc/ 以下の pip.conf (無ければ新規作成) へ以下を追記する

# vi /etc/pip.conf

[list]
format=columns

確認する

# pip list

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published.