diff --git a/pip/commands/install.py b/pip/commands/install.py index 40cc9f859..f40785d1d 100644 --- a/pip/commands/install.py +++ b/pip/commands/install.py @@ -298,7 +298,7 @@ class InstallCommand(RequirementCommand): installed = ' '.join(items) if installed: logger.info('Successfully installed %s', installed) - except OSError: + except EnvironmentError: base_msg = ( "Unable to install due to lack of permissions in " "installation directory."