[VSCode]command 'python.setInterpreter' not found

爱⌒轻易说出口 提交于 2020-01-29 09:37:11

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

command 'python.setInterpreter' not found

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

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

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

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!