user24165713
user24165713

Reputation: 1

I cannot run python code with Code Runner

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.

Upvotes: -2

Views: 71

Answers (1)

Jerry Spice
Jerry Spice

Reputation: 61

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.

Upvotes: 0

Related Questions