pip list 时出现警告信息该如何解决?

如下警告:

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

这段信息的意思是说以后pip list的默认格式会采用columns了 
解决方法:(windows)在C:Users{用户名} 目录下创建名称为pip的文件夹,里面创建文本文件,内容为 

[list] 
format=columns 

然后保存文件名为pip.ini就解决了,这时候再重新打开命令行执行pip list就不会出现提示信息了

原文地址:https://www.cnblogs.com/fh-fendou/p/7513437.html