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
终是庄周梦了蝶,亦是情缘亦是劫
原文地址:https://www.cnblogs.com/zhangxuel1ang/p/14372929.html