-1

I updated my 2020 MacBook to Monterey 12.3.1 and when I tried to open Visual Studio Code through the terminal using code . I got the error below

/usr/local/bin/code: line 6: python: command not found
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory

This is the same error I've gotten on different projects I've tried to open and some of those aren't even written with Python. I've already tried uninstalling and reinstalling 'code command from PATH' through VS but it's still returning the same error. Any ideas? Thanks in advance.

1 Answers1

1

According to my research, following, this can happen when you uninstall python2. Editing the referenced "line 6:" to invoke python3 (instead of python v2) is a remedy.

ScottWelker
  • 1,701
  • 17
  • 30