pip refuses to upgrade

后端 未结 3 1408
被撕碎了的回忆
被撕碎了的回忆 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:51

    If above are not working, please try this it works(I had similar situations and this works):

    1. download get-pip.py: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

    2. Run the downloaded file: python get-pip.py

      Above uninstalls the old version and install the latest ones. Reference Link: https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py

提交回复
热议问题