-
Notifications
You must be signed in to change notification settings - Fork 3k
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 should automatically perform pip check #6200
Comments
It does. :) It's limited to checking only the packages that require some of the installed packages. Essentially, it only checks the subset that's directly connected to the modified versions of packages. |
Really? I have pyflakes 2.0.0 and flake8 installed. Then I wanted to update to pyflakes 2.1.0 using |
Hmm... pip install -U, should have printed a warning. Could you try that again and post the instructions for reproducing this? |
You're right, I didn't notice the warning. I think there should be a prompt so that the user can't ignore the warning - it just installs anyway and I don't get a chance to abort. |
Yea, that's intentional. There's no past precedent for pip install halting for input and in fact, doing it for just dependency issues, when really pip should do better dependency resolution isn't going to help anyone. |
FYI, there is precedent for pip asking for input during installs. It's not behavior I like, but it's there. You can find some by searching the code base for pip/src/pip/_internal/vcs/__init__.py Line 407 in e5f4bbb
|
So are you saying that in my example pip shouldn't perform the update then? |
OK, thanks for clarifying. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I really like the new
pip check
feature. However, whenever I install/upgrade a new package, I need to manually perform this step to see if all requirements are still met. It would be really nice if pip could perform this check prior to installing/upgrading packages and issue a warning if there are broken requirements. Maybe the user could then be prompted whether or not to continue or abort the installation.The text was updated successfully, but these errors were encountered: