Fix 'pip externally managed environment' Error for venv Setup - Git Detached HEAD: Find and Restore Missing Changes-Fix Docker Compose Shell Variable Not Working

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