pip 警告!The default format will switch to columns in the future

pip警告!

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.

pip升级到9.0.1后 查看pip.list 出现的警告 , 这个警告是提示以后pip的版本默认格式会采用columns, 你可以通过--format来指定以什么形式进行展示(legacyh 或者 columns 格式)

不影响正常使用  就是不太美观

pip 警告!The default format will switch to columns in the future

 

解决方法:

 创建pip.conf的配置文件去掉警告。

 cd ~         跳到根目录

 mkdir .pip      创建.pip文件(.pip隐藏文件)

 cd  .pip        进入到.pip

 vi pip.conf   创建pip,conf文件并进入到vi编辑模式 

pip 警告!The default format will switch to columns in the future

在vi里输入以下内容:

i 进入插入模式 进行输入 输入完Esc进入命令模式 

输入Shift +:    输入x 保存  退出    

pip 警告!The default format will switch to columns in the future

 

回到根目录  cd ~

再次输入 pip.list   警告没有了 看着舒服多了(送给强迫症的朋友)

pip 警告!The default format will switch to columns in the future