Fix 'pip externally managed environment' Error on Python 3.11 - Overcoming 'remote origin already exists' in Git-pnpm Lockfile Mismatch Troubleshooting

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