Fix Git 'refusing to merge unrelated histories' Error - Resolve pip Externally Managed on Debian Bookworm-Resolve Python Dependency Conflicts in Virtualenv

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