gpt4 book ai didi

python - VSCode : Using the MS Python extension cannot execute code

转载 作者:行者123 更新时间:2023-12-04 17:23:40 25 4
gpt4 key购买 nike

几个月来,我一直在使用 VSCode 和 Microsoft Python 扩展。然而,就在今天,我发现右上角执行我的代码的绿色按钮不见了。我试过卸载 python 扩展并重新安装,我已经删除并重新下载了 VSCode,我试过安装代码运行器。这些都没有解决这个问题。
这是我的 VSCode 的图像,可能有助于解决问题:
This is the image of my VSCode, which may help to solve the issue.
当我尝试选择 Python: select interpreter 时,我在右下角收到一个错误,提示:

"Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)"


我以前从未遇到过这样的问题,因此非常感谢任何帮助。谢谢!
Image of the plugin I have installed.

最佳答案

如果该选项没有出现,则可以选择在 vs 代码的左侧面板上运行该程序,如下所示:Click on it to see how it looks properly
然后您需要单击调试并运行或任何选项,如果模糊不清,那么您还没有保存文件,首先保存它,然后再次执行相同的选项,然后它将运行。

关于python - VSCode : Using the MS Python extension cannot execute code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64723778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com