天天看點

python中pip更新失敗:Requirement already up-to-date: ... (19.0.3)坑述填坑

坑述

裝一個包說我的pip版本太低

pip 9.0.1

python中pip更新失敗:Requirement already up-to-date: ... (19.0.3)坑述填坑

需要更新到19.0.3

運作:pip install --upgrade pip

You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
           

然後我就按他的要求輸入了指令

python -m pip install --upgrade pip
           

結果…

Requirement already up-to-date: pip in c:\project\gencostmatrics\python\lib\site-packages (19.0.3)
           

已經有了19.0.3可用是什麼鬼

填坑

注意,已經有了的pip19.0.3,在哪呢?

對,就是提示的這個目錄

其實這個是pycharm的坑…不管了,直接删掉這個目錄

python中pip更新失敗:Requirement already up-to-date: ... (19.0.3)坑述填坑

删掉它

重新運作pip install --upgrade pip指令

ok

python中pip更新失敗:Requirement already up-to-date: ... (19.0.3)坑述填坑

繼續閱讀