Fix pip Externally Managed Environment Errors - Fixing 'git rebase index.lock file exists' Error-Git Clone Timeout: Config Settings to Try

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