Fixing pip Externally-Managed Environment Errors - Resolving Git's Unrelated Histories Error-How to Fix pip Externally Managed Environment Error in Python 3.12

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