Fix 'pip externally managed environment' Error in Python 3.12 - How to Stop Nginx Redirect Loop and Load Your Site-Fix Git 'refusing to merge unrelated histories' Error

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