Difference between pip install options “ignore-installed” and “force-reinstall”

后端 未结 2 1597
借酒劲吻你
借酒劲吻你 2020-12-08 00:31

There are two pip install options related to reinstalling the packages, which are --ignore-installed and --force-reinstall.

Th

2条回答
  •  佛祖请我去吃肉
    2020-12-08 01:18

    --ignore-installed can also be used if you have a virtual env that inherits the global site-package and you want to override the global installation (without uninstalling it).
    For example you can have version N in the global python installation and version N+1 in the venv.
    It is very convenient to test/debug a new version of a package in a virtual env.

提交回复
热议问题