Join GitHub today
pip 10.0.0 fails silently if it cannot install due to missing write permissions #5237
When installing to a site-packages directory where the current user is not able to write, pip 10.0.0 does not show an error message. It returns with nonzero exit code, but since there is no error message printed it's easy to miss the installation failed.
This is a common situation when using system-wide Python installations and forgetting to give the
This is a regression, as in this situation pip 9 prints an the error traceback that says "PermissionError: [Errno 13] Permission denied".
What I've run:
Reproducing shell script
set -e -x chmod u+w -Rf mytest rm -rf mytest mkdir mytest cd mytest python3 -mvenv env ./env/bin/pip install --upgrade 'pip>=10' chmod -R a-w env if ./env/bin/pip install six; then echo "Pip claims installation was successful?" else echo "Pip claims installation failed." fi
Note that pip does not print any message saying the installation was not successful, and what's printed looks like the installation was successful, contrary to what actually happened.
so it's EACCES, not EPERM