Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install breaks existing install (and prints that it did so) instead of refusing to perform #9482

Closed
1ace opened this issue Jan 20, 2021 · 1 comment

Comments

@1ace
Copy link

1ace commented Jan 20, 2021

Environment

Description

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
@uranusjr
Copy link
Member

See #7744.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants