問題描述
在python安裝包的過程中 提示
需要執(zhí)行python -m pip install --upgrade pip 升級才能安裝包身冬,
但是執(zhí)行python -m pip install --upgrade pip 又會報錯python -m pip install --upgrade pip
解決方法
方法一:
如果是報錯超時:
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
方法二:
如果是執(zhí)行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.
需要執(zhí)行 升級pip包狸页,即可升級成功
>python -m pip install --upgrade --user pip
升級成功以后直接運行pip install [name_of_your_package]