vscode /bin/sh: python: command not found

参考链接:https://blog.csdn.net/qq_40741855/article/details/125654452

 

在vs code中运行python code,在output中出现错误:

/bin/sh: python: command not found

原因可能是选中的是Run Code:

 

 

选择Run Python File, 可能就可以正常运行了。输出会出现在terminal中。

 

好坑啊。。。

posted @ 2023-08-10 14:10  一个圆球  阅读(278)  评论(0编辑  收藏  举报