Fix 'pip externally managed environment' on Ubuntu 23.04 - Troubleshooting npm run build Errors on Windows-How to Set Up pnpm on Windows: A Practical Checklist

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