Fix 'git pull failed index.lock file exists' Error - Fix Windows Remote Desktop Connection Failed-Resolve pip's Externally-Managed-Environment Error

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