-2

Whenever I try to run a python code in vs code (macOS) it does not run and gives me the following message: "zsh: command not found: python". But if I disable the extension of Code Runner, the code runs. I need this extension for c++. How can I solve this?

I searched for different configurations on the extension settings, but I could not find anything to solve it.

0

1 Answer 1

0

if there's an option to change the command that the extension runs, try changing it to python3 followed by whatever the rest of the command is. Python on MACs is usually preinstalled as python3.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.