Fix 'pip externally managed environment' Error for venv Setup - Resolve EACCES error with pnpm global install on Linux-Resolving Git's Refusing to Merge Unrelated Histories

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.