You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running pip install with packages that are incompatible, pip breaks the existing install instead of refusing the action.
Breaking the install should either be forbidden, or hidden behind --force if you think someone out there really wants that behaviour, but it should definitely not be the default behaviour...
Expected behavior
pip should refuse to break the existing install, instead of casually mentioning it just did and exit with 0.
How to Reproduce
$ docker run --rm -it python bash
# pip install scanpydoc==0.5.5
[...]
# echo $?
0
# pip list | grep Sphinx
Sphinx 3.4.3
# pip install sphinx==1.8.4
Installing collected packages: sphinx
Attempting uninstall: sphinx
Found existing installation: Sphinx 3.4.3
Uninstalling Sphinx-3.4.3:
Successfully uninstalled Sphinx-3.4.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
scanpydoc 0.5.5 requires sphinx>=3.0, but you have sphinx 1.8.4 which is incompatible.
Successfully installed sphinx-1.8.4
# echo $?
0
# pip list | grep Sphinx
Sphinx 1.8.4
# pip list | grep scanpydoc
scanpydoc 0.5.5
The text was updated successfully, but these errors were encountered:
Environment
python
docker imageDescription
When running
pip install
with packages that are incompatible, pip breaks the existing install instead of refusing the action.Breaking the install should either be forbidden, or hidden behind
--force
if you think someone out there really wants that behaviour, but it should definitely not be the default behaviour...Expected behavior
pip
should refuse to break the existing install, instead of casually mentioning it just did and exit with0
.How to Reproduce
The text was updated successfully, but these errors were encountered: