Fix 'pip externally managed environment' Error for venv Setup - Resolve Python UnicodeDecodeError for Non-UTF-8 Files-Nginx HTTP to HTTPS Loop: Causes and Solutions

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