问题描述
在python安装包的过程中 提示
需要执行python -m pip install --upgrade pip 升级才能安装包,
但是执行python -m pip install --upgrade pip 又会报错python -m pip install --upgrade pip
解决方法
方法一:
如果是报错超时:
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
方法二:
如果是执行python -m pip install --upgrade pip 又报错
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
需要执行 升级pip包,即可升级成功
>python -m pip install --upgrade --user pip
升级成功以后直接运行pip install [name_of_your_package]