1、pip 升级包的时候,出现:Cannot uninstall xxx . It is a distutils installed project 的解决方法;
ERROR: Cannot uninstall ‘XXX’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
原因: 无法卸载“XXX”。这是一个distutils安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。
解决办法: pip install XXX --upgrade --ignore-installed XXX
2、pip 虽然正常安装了,但有时候会提示你的 pip 版本过低
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the ‘/usr/local/bin/python -m pip install --upgrade pip’ command.
解决办法: python -m pip install --upgrade pip
3、第三方包名称输入错误
ERROR