Fix pip Externally Managed Environment Error on Linux - Fix Windows Update Error 0x800f081f-Fixing Git Merge Refusing Unrelated Histories

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