python - 无法在 WSL vscode 中使用 python 扩展

标签 python visual-studio-code windows-subsystem-for-linux vscode-remote

当我从 WSL 终端启动 vscode 时,没有可用的 python 环境。我安装了 Python 以及 vscode 的 Python 扩展。

这是我的 vscode 的样子。

My vscode environment in WSL

最佳答案

为了让 VSCode 使用 Python 扩展,必须将其安装在代码所在的计算机上。根据您的情况,您必须在 WSL 内安装扩展,只需单击在 WSL 上安装按钮,它就应该可以工作。

关于python - 无法在 WSL vscode 中使用 python 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59312435/

相关文章:

windows - 如何在VS Code中为其他发行版打开wsl工作区?

docker - 如何修复 "malformed entry 50 in list file/etc/apt/sources.list (Component)"?

python - 从数组中删除随机选择的元素

python - 为什么父类(super class)属性在当前类的命名空间中不可用?

python - 没有 numpy 的列表切片列表

visual-studio-code - VS 代码 : Is it possible to have an extension with user interface (Html/css/JS)?

python - 当嵌套在相同的 `with` 中时,避免执行 `with` 语句

linux - ubuntu14.04安装vscode 1.32依赖什么

visual-studio-code - 如何恢复对 Visual Studio Code 标题栏颜色的更改?

ubuntu - ZSH 和 VSCode - 默认 Shell