无论学习什么语言,解决问题最好的着手点就是查看错误本身
- 安装pip:sudo apt install python3-pip
- 使用pip3: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.
翻译:pip3 list的默认格式会采用columns,以在命令后面加上–format来指定什么展示格式,可以在配置文件中指定默认格式
#这个问题出现在pip9.0.1版本上:
xx@xx:~$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
-
solutions(choose one to resolve this warning)
-
pip3 list --format=legacy
-
pip3 list --format=columns
-
pip3 freeze