I'm a Mac user and new to coding. I want to open VS Code from iterm2. I followed the instruction from an article, but I couldn't open it.
- I opened VS Code command palette then typed shell.
- I clicked
Shell Command: install 'code' command in PATH.
VS code showedShell command 'code' successfully installed in PATH.
- I opened my terminal and typed
code .
and my terminal showed:
code .
/usr/local/bin/code: line 6: python: command not found
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory
How can I fix this?