[VSCode]command 'python.setInterpreter' not found

vscode中的python插件突然出了问题:在Ctrl+Shift+P后选择Python: Select Interpreter, vscode报了错误:

command 'python.setInterpreter' not found

联想到刚刚在系统中安装了conda, 猜测可能是这个问题造成的。排查后果然是这个原因,解决方法:

菜单栏的文件 -> 首选项 -> 设置, 搜索 python.pythonPath

在出现的结果里,把pythonPath对应的值修改为实际系统中anaconda的python命令的路径即可。

比如:
在这里插入图片描述

发布了372 篇原创文章 · 获赞 1031 · 访问量 242万+

猜你喜欢

转载自blog.csdn.net/moxiaomomo/article/details/104103578