【问题标题】:Using multiple Python kernels in Visual Studio Code在 Visual Studio Code 中使用多个 Python 内核
【发布时间】:2017-05-22 09:53:04
【问题描述】:

我正在尝试开始使用由 Don Jayamanne 编写的带有 Python/Jupyter 扩展的 Visual Studio Code。我的系统上有 Python 3.5 和 3.6 内核,但我无法让它们都对这些扩展可见。 VS Code 中只有系统默认内核可用。

如何确保 VS Code 和 Python 扩展能够看到所有可用的 Python 内核并允许我从中进行选择?

【问题讨论】:

    标签: python visual-studio-code


    【解决方案1】:

    我正在使用 Microsoft 的 Python 扩展。 为此,您可以这样做:

    Ctrl+Shift+P(命令面板)-> Python: Select Interpreter

    或者,点击左下角的环境(例如下面),然后更改它。

    如果仍然无法发现,那么我们需要包含相关路径。您可以通过Command Palette -> Preferences: Open User Settings -> 搜索 path -> 选择 Python 扩展名以更改其设置 -> 相应地指向系统设置的路径(例如 Conda Path、@ 987654329@, Python Path, Venv Path)

    【讨论】:

      【解决方案2】:

      我明白了。 Ctrl+Shift+P(命令面板)-> Python:选择工作区解释器

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-11-10
        • 2022-11-14
        • 1970-01-01
        • 1970-01-01
        • 2021-07-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多