> 技术文档 > 【python】python 升级pip,遇到ERROR: To modify pip, please run the following command

【python】python 升级pip,遇到ERROR: To modify pip, please run the following command

错误类型
【python】python 升级pip,遇到ERROR: To modify pip, please run the following command
解决方法

  1. 先升级setuptools
pip install --upgrade setuptools
  1. 可以查看升级后版本是否更高
python -m pip show setuptools
  1. 再升级pip
 python -m pip install --upgrade pip
  1. 查看pip版本
pip --version