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

一、现象:

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就没有提示警告了。

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

时间: 2024-08-06 02:44:31

pip list报错:DEPRECATION: The default format will switch to columns in the future.的相关文章

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 install报错Can't roll back cryptography; was not uninstalled

当使用pip install或者pip install --upgrade报错 Can't roll back cryptography; was not uninstalled 可以进行以下的尝试: sudo apt-get install libssl-dev libffi-dev 之后再继续php install pip install报错Can't roll back cryptography; was not uninstalled

python2.7.6 , setuptools pip install, 报错:UnicodeDecodeError:'ascii' codec can't decode byte

今天折腾了一天,安装pyspider,由于依赖包众多,而且搜索到所有信息多是在linux平台和mac平台下的安装教程.可怜我试了n多版本,一直不成功. 最后发现有人说python的版本,不能低于2.7.6,否则pycurl无法安装成功,一查我的是2.7.2. 好吧,卸载,重新安装python2.7.6. 似乎安装后,能够顺利安装pycurl了,但是easy_install 报错信息与编码相关: 在网上搜索找到解决方案:http://www.360doc.com/content/14/0508/0

pip升级报错 ImportError: cannot import name 'main'

[email protected]:/usr/bin# pip3 install pyaudio Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main ImportError: cannot import name 'main' 参考:https://stackoverflow.com/questions/28210269/impor

输入pip命令报错:from pip import main ImportError: cannot import name &#39;main&#39;

报错信息: [email protected]:~$ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name 'main' 很多博文的解决方案是,可能他们执行这命令有效果,我这ubuntu是不管怎么升级都只能是pip的8版本,也没找到如何pip的10版本设为默认版本,

解压版本Python,手动安装pip报错,pip得到报错&quot; No module named &#39;pip&#39; &quot;

解压版本Python,手动安装pip报错 λ pip Traceback (most recent call last): File "runpy.py", line 193, in _run_module_as_main File "runpy.py", line 86, in _run_code File "D:\tools\python-3.8.1-embed-amd64\Scripts\pip.exe\__main__.py", line

pip下载报错cannot import name &#39;FormatControl&#39;

今天在pycharm中通过pip install下载插件时,不知道什么原因出了错 解决方法:降低了pip的版本 pip下载地址:https://pypi.org/project/pip/19.1.1/#files 下载后解压,并进入解压后的文件 输入 python setup.py install 之后pip成功降级,错误也解决了 pip下载报错cannot import name 'FormatControl' 原文地址:https://www.cnblogs.com/liujinxin123

pip运行报错Fatal error in launcher: Unable to create process using pip.exe

使用pip的时候报错Fatal error in launcher: Unable to create process using pip.exe 解决办法,升级pip python -m pip install -U pip 或者 python -m pip install --upgrade pip

pip安装报错:is not a supported wheel on this platform

转自:http://www.cnblogs.com/nice-forever/p/5371906.html 可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理. 可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台) 我下载到的numpy库文件名: numpy-1.10.4+mkl-cp27-cp27m-win32.whl 使用pip安装(在命令行中): pip installnumpy-1.10.4+mkl-cp