简体   繁体   English

Python:Select 在 vscode 命令面板中找不到解释器命令

[英]Python: Select Interpreter command not found in vscode command palette

I have setup a project workspace folder, and I need to setup the interpreter but the command "Python: Select Interpreter" is not found.我已经设置了一个项目工作区文件夹,我需要设置解释器,但是找不到命令“Python: Select Interpreter”。

I had that problem today.我今天遇到了这个问题。 For me, it was a trust problem with the Python Package.对我来说,这是 Python 包的信任问题。

Go to the extensions and type @workspaceUnsupported in the extensions search box at the top of the extensions list.转到扩展并在扩展列表顶部的扩展搜索框中键入 @workspaceUnsupported。

My Python extension was in the RESTRICTED MODE list.我的 Python 扩展在 RESTRICTED MODE 列表中。 I trusted the Python extensions and right away a popup showed with the Python: Select Interpreter command which showed me the list of available Python interpreters.我信任 Python 扩展,并立即显示一个带有 Python: Select Interpreter 命令的弹出窗口,该命令向我显示了可用 Python 解释器的列表。

See this link for more information about trusting extensions: https://code.visualstudio.com/docs/editor/workspace-trust#_enabling-extensions有关信任扩展的更多信息,请参阅此链接: https ://code.visualstudio.com/docs/editor/workspace-trust#_enabling-extensions

I had the same problem, I just installed the Python extension on the remote machine (ssh) and it worked for me.我遇到了同样的问题,我刚刚在远程机器 (ssh) 上安装了 Python 扩展,它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM