Fix 'git pull failed index.lock file exists' Error - Resolve npm Install Permission Errors Caused by Yarn-Fixing Python Dependency Conflicts in setup.py

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