Fix 'pip install externally managed environment' Error - Resolving Git's Refusing to Merge Unrelated Histories-How to Set Git Proxy for Clone Timeouts

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.