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.
解决办法
- 新建
pip.conf
,在命令行窗口输入
cd ~/.config
mkdir pip
cd pip
touch pip.conf
vim pip.conf
- 在vim中配置
pip.conf
信息
[list]
format=columns
:wq保存退出
- 搞定,再次输入
pip3 list
,警告消失。
网友评论