Fix 'pip install externally managed environment' Error - Fix Nginx 502 Bad Gateway with Docker Multiple Containers-Resolve UnicodeDecodeError in Python ftplib

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.