pip refuses to upgrade

后端 未结 3 1410
被撕碎了的回忆
被撕碎了的回忆 2021-01-19 06:09

I currently have installed pip 8.1.2.

So I want to upgrade it to the latest version (9.0.1) and I execute:

sudo pip install --upgrade pip


Collectin         


        
3条回答
  •  孤街浪徒
    2021-01-19 06:55

    Had a similar issue with pip not wishing to upgrade, though I'm not keen on replacing the package manager's version and as I'm always adding the --user option on installations via pip I figured "what's the harm?" in doing the same with pip on itself.

    pip install --user --upgrade pip
    

    It'll only work for one user but for some use cases that is just peachy.

提交回复
热议问题