Can I force pip to reinstall the current version?

前端 未结 7 1936
Happy的楠姐
Happy的楠姐 2020-11-27 09:07

I\'ve come across situations where a current version of a package seems not to be working and requires reinstallation. But pip install -U won\'t touch a package

7条回答
  •  -上瘾入骨i
    2020-11-27 09:32

    pip install --upgrade --force-reinstall 
    

    When upgrading, reinstall all packages even if they are already up-to-date.

    pip install -I 
    pip install --ignore-installed 
    

    Ignore the installed packages (reinstalling instead).

提交回复
热议问题