将自定义 python.pythonPath 添加到口译员列表
Add Custom python.pythonPath to List of Interpreters
我想使用自定义 python 解释器,您可以通过将其添加到 python.pythonPath
来实现,如下图所示。
但是,我认为会有一个选项,这样我就可以将一个解释器添加到您可以在下面看到的可用解释器列表中,这样我就可以轻松地在它们之间切换,而无需在我的 user/workspace/folder设置。
有什么方法可以添加到列表中,而不是使用 python.pythonPath
覆盖当前显示在左下角的内容?
扩展名 searches in certain places for interpreters like PATH
and in places where you say to look for virtual environments. If you can get your interpreter to show up in one of those places then it will show up in the list. Otherwise what you're asking for isn't currently available (although you could open a feature request at https://github.com/microsoft/vscode-python 如果需要)。
关闭并重新打开后 vscode 现在显示解释器。
我想使用自定义 python 解释器,您可以通过将其添加到 python.pythonPath
来实现,如下图所示。
但是,我认为会有一个选项,这样我就可以将一个解释器添加到您可以在下面看到的可用解释器列表中,这样我就可以轻松地在它们之间切换,而无需在我的 user/workspace/folder设置。
有什么方法可以添加到列表中,而不是使用 python.pythonPath
覆盖当前显示在左下角的内容?
扩展名 searches in certain places for interpreters like PATH
and in places where you say to look for virtual environments. If you can get your interpreter to show up in one of those places then it will show up in the list. Otherwise what you're asking for isn't currently available (although you could open a feature request at https://github.com/microsoft/vscode-python 如果需要)。
关闭并重新打开后 vscode 现在显示解释器。