Warning: pip is being invoked by an old script wrapper

后端 未结 6 2084
半阙折子戏
半阙折子戏 2021-02-03 23:01

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 advi

6条回答
  •  野性不改
    2021-02-03 23:01

    I also faced the same problem when I switched to zsh shell from bash.

    The solution was simple but I didn't notice it at first.

    After I installed pip, I saw this warning

    pip is being invoked by an old script wrapper

    First I tried this solution

    python3.8 -m pip install --upgrade --force-reinstall pip

    But then I ran into this issue:

    Screenshot from 2020-10-07 13-42-32

    Then I searched how to add PYTHONPATH. I opened my .zshrc and say these lines were commented

    # If you come from bash you might have to change your $PATH.

    I uncommented the line that followed, and my misery vanished.

    Screenshot from 2020-10-07 13-38-17

    Now when I ran,

    python3.8 -m pip install --upgrade --force-reinstall pip

    Then the warnings of not in path disappeared in thin air, leaving me with a clean output.

    Screenshot from 2020-10-07 13-55-34

    I hope this would help anybody who ran into the same problem.

提交回复
热议问题