2019-09-04

2019-11-04  本文已影响0人  简学识

Ubuntu 命令行下pip3 list显示DEPRECATION: The default format will switch to columns in the future错误

pip3 list 显示以下错误:

YourName@ubuntu:~$ 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. 新建pip.conf,在命令行窗口输入
cd ~/.config
mkdir pip
cd pip
touch pip.conf
vim pip.conf
  1. 在vim中配置pip.conf信息
[list]
format=columns

:wq保存退出

  1. 搞定,再次输入pip3 list,警告消失。
上一篇 下一篇

猜你喜欢

热点阅读