Don't throw away package install error messages
Merge pull request #19110 from rallytime/pip_state_fixes

Don't throw away package install error messages