- 1、查到到pip和pip3在电脑上的位置
which pip # /home/sunzl/.local/bin/pip which pip3 # /home/sunzl/.local/bin/pip3
- 2、删除电脑上的pip和pip3
例如: rm /home/sunzl/.local/bin/pip rm /home/sunzl/.local/bin/pip3
- 3、重新安装pip3
apt-get install python3-pip
- 4、解决告警: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.
python3 -m pip install --upgrade pip # 更新到最新版本



