VSCode 无法识别 python 解释器 [英] VSCode doesn't recognize python interpreter

查看:37
本文介绍了VSCode 无法识别 python 解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 arch linux,由于某种原因,VSCode 没有找到 python 解释器.

I am on arch linux, and for some reason VSCode doesn't find the python interpreter.

我已尝试将 python 解释器路径设置为正确 (/bin/python3),如果我实际运行了一个文件,则它可以工作,但是 python 扩展程序说我需要在使用扩展程序之前下载 python,并且自动完成不起作用.有任何想法吗?有什么方法可以调试这个问题吗?

I have tried to set the python interpreter path to to be right (/bin/python3), and if I actually run a file then it works, but the python extension says I need to download python before using the extension and the auto complete doesnt work. Any Ideas? Any ways to debug this issue?

推荐答案

我通过 vscode-insiders 找到了我的解决方案.当前的 vscode python 扩展已经转向依赖 jupyter,这是另一个仅适用于 vscode 内部人员的扩展.

I found my solution with vscode-insiders. The current vscode python extension is already move on to rely on jupyter, another extension available only on vscode insiders.

加上 vsc 内部人员标志看起来很酷..

Plus the vsc insiders logo looks cool..

这篇关于VSCode 无法识别 python 解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆