Fix Git index.lock File Exists Permission Denied Error - Fix Externally Managed Environment pip Error-Git Clone Connection Timed Out? Firewall Fixes

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.