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

后端 未结 4 2010
轮回少年
轮回少年 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条回答
  •  余生分开走
    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
    

提交回复
热议问题