Fix 'pip install externally managed environment' Error - How to Resolve Nginx 502 Bad Gateway on Docker-Fix Git Remote Origin Already Exists Error

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