Facing issues with Vsc Code Runner, unable to run python code using Code Runner. Works fine when clicked on Run Python Code button
I get an error
zsh: no such file or directory: /usr/local/bin/python3.9.2
I have identified the error, need to change the run command from
python -u
to
python3 -u
How do I do that?
First, make sure that you have installed the python extension. Secondly, this should be caused by the error of interpreter path recognition. You can modify it manually. Type ctrl+shift+P
and then choose “python:select Interpreter”. Check that the Python interpreter has selected the correct one, and then run the file again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.