Fix 'pip externally managed environment' Error on Python 3.11 - Git Merge Unrelated Histories vs Rebase: When and How to Use Each-How to Merge Unrelated Git Histories Safely

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