[runtime env] Change pip_check
default from True
to False
#23306
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
@SongGuyang @Catch-Bull @edoakes I know we discussed this earlier, but after thinking about it some more I think a more reasonable default is for
pip check
to beFalse
by default. My guess is that a lot of users (including myself) work inside an environment wherepython -m pip check
fails, but the environment doesn't cause them any problems otherwise. So a lot of users will hit an error when trying a simpleruntime_env
pip
example, and possibly give up. Another less important piece of evidence is that we had to setpip_check = False
to make some CI tests pass in the original PR.This also matches the default behavior of pip which allows this situation to occur in the first place:
pip install
doesn't error when there's a dependency conflict; rather the command succeeds, the package is installed and usable, and it prints a warning (which is confusingly titled "ERROR")Example:
Related issue number
Closes #23291
Checks
scripts/format.sh
to lint the changes in this PR.