解决pip升级问题

pip show pip 出现以下问题

  • WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see
    https://github.com/pypa/pip/issues/5599 for advice on fixing the
    underlying issue. To avoid this problem you can invoke Python with
    ‘-m pip’ instead of running pip directly

直接删除

  • python -m pip uninstall pip

更新

  • pip install --upgrade pip

猜你喜欢

转载自blog.csdn.net/weixin_44110913/article/details/109533700