码迷,mamicode.com
首页 > 其他好文 > 详细

pip list报错:DEPRECATION: The default format will switch to columns in the future.

时间:2019-09-05 23:07:28      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:define   default   The   fine   orm   you   文件内容   python   没有   

一、现象:

      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.
二、解决方案:
如果你的PIP版本是9.0.1话,可以在~/pip/pip.conf配置文件中加入下面的语句,避免这类警告:

    [list]
    format=columns


Win7系统自己创建%APPDATA%\pip\pip.ini文件,添加如下文件内容:

    [list]
    format=columns

    一般出现这种警告的都是pip9,可以把它更新到最新的版本,直接运行如下命令即可:


python -m pip install --upgrade pip 
我更新之后再用pip list就没有提示警告了。

pip list报错:DEPRECATION: The default format will switch to columns in the future.

标签:define   default   The   fine   orm   you   文件内容   python   没有   

原文地址:https://www.cnblogs.com/igoodful/p/11470222.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!