How can I get rid of this warning to upgrade from pip?

后端 未结 4 2011
轮回少年
轮回少年 2021-01-20 03:52

Whenever I use pip, it warns me that my pip is out of date and that I need to upgrade it by doing pip install --upgrade pip.

But when I do that it seem

相关标签:
4条回答
  • You can install pip using system package manager,

    for ubuntu/debian: apt-get install python-pip

    for arch: pacman -S python-pip

    In this the package manager will update pip every time a new version will be available for your distribution.

    0 讨论(0)
  • 2021-01-20 04:28

    You can fix it with:

    pip3 install --upgrade pip
    

    It worked for me

    0 讨论(0)
  • 2021-01-20 04:34

    You need to run:

    pip install --upgrade pip
    

    twice.

    The first time it upgrades to version 8.1.0 and the second time to 8.1.1. After this there will be no warnings anymore.

    0 讨论(0)
  • 2021-01-20 04:48

    This one was resolved here:

    How to suppress pip upgrade warning?

    There is a known issue with pip where it will print that warning even if you have the version of pip that shipped with your OS. It is safe to get rid of the warning with this command:

    mkdir -p $HOME/.config/pip
    printf "[global]\ndisable-pip-version-check = True\n" \
      > $HOME/.config/pip/pip.conf
    
    0 讨论(0)
提交回复
热议问题