linux ubuntu pip3 list 出现警告

错误重现

 执行pip3 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.

解决方法

  1. /etc下新建pip.conf:
    sudo nano /etc/pip.conf
  2. 写入
    [list] format=columns
    ctrl x Y 保存
  3. 再次执行pip3 lsit
posted @ 2021-02-04 15:38  coderdogz  阅读(294)  评论(0编辑  收藏  举报
Live2D