Why is cursor causing MacOS: "The “python” command requires the command line developer tools. Would you like to install the tools now?"

For weeks now Cursor is causing this dialog on MacOS to popup frequently. Even after I install the command line developer tools (MANY TIMES!) just as it asks, the dialog keeps popping up. It’s only Cursor that does this.

The text from the dialog:

“The “python” command requires the command line developer tools. Would you like to install the tools now?”

[system info]

Version: 0.47.8 (Universal)

VSCode Version: 1.96.2

Commit: 82ef0f61c01d079d1b7e5ab04d88499d5af500e0

Date: 2025-03-18T05:28:47.245Z (1 mo ago)

Electron: 32.2.6

Chromium: 128.0.6613.186

Node.js: 20.18.1

V8: 12.8.374.38-electron.0

OS: Darwin arm64 24.4.0