Fix 'pip externally managed environment' Error in Python 3.12 - Handling Git Merge Conflicts in Lockfiles-How to Set Timeout in Python Requests

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