
Fix 'pip install externally managed environment' Error
If you're seeing pip install fail with a message about an externally managed env...
Software troubleshooting desk

If you're seeing pip install fail with a message about an externally managed env...

You run sfc /scannow to check system files, and it completes successfully. But when ...

When your Python project uses multiple requirements files—for example, requirements/base.tx...

You run git stash and see: fatal: Unable to create 'path/.git/index.lock...

When you see fatal: Unable to create 'path/.git/index.lock': File exists., G...

After restarting nginx, you might see errors like connect() to unix:/var/run/php-fpm.sock f...