Fix pip Externally Managed Environment Errors - Troubleshooting Git index.lock Permission Error-Git --allow-unrelated-histories conflict resolution guide

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