Fix Externally Managed Error: Create Virtual Environment - Resolve Docker Compose Port Already in Use-Resolve Git Merge Refusal for 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.