今天在检查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 list会给出上面的警告,总的来说没说影响使用了,但是看到一排红字还是很郁闷,在网上查找了解决办法,已经解决,还是开心的。
C:\Users\DELL下建立命名为pip的txt文档,内容照提示改成
[list]
format = columnts
文档后缀改为ini
pip list 之后就没有警告了
顺便记录一下第三方包的安装
第一种方法:
Step1:在网上找到的需要的包,下载下来。
Step2:解压缩该文件。
Step3:命令行工具 cd切换到所要安装的包的目录,然后输入python setup.py install
第二种方法::
直接打开cmd,敲pip install 要安装的包。