Fix 'pip externally managed environment' Permission Denied Error - Docker Desktop Engine Troubleshooting Guide-Nginx 502 Bad Gateway: Connection Refused to localhost

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