Fix pip Error: Externally Managed Environment - How to Avoid index.lock File in Git-How to Fix Git Remote Origin Already Exists

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