Fix 'pip externally managed environment' Error on Python 3.11 - How to Handle Git Merge Conflicts When Pulling-How to Handle pnpm Lockfile Conflicts in Git

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