shinyypig / matlab-in-vscode

A vscode extension for matlab.
MIT License
45 stars 4 forks source link

Windows11 已安装MATLAB engine for python,已在设置中勾选 pybackend,已添加环境变量,仍无法正常运行 #31

Closed Gew404 closed 8 months ago

Gew404 commented 8 months ago

image 如图,请问这是哪里出了问题呢? settings.json配置如下图,python版本为3.8(之前装了3.12之后卸载了),python窗口内可以正常调用Matlab engine for python,之后使用了code runner插件也可正常调用。 image

Gew404 commented 8 months ago

image

shinyypig commented 8 months ago

没有配置 "matlab-in-vscode.matlabPythonPath",你可以删除这一行,从而使用默认配置;或者指定你想要用的python路径,不能空着。

Gew404 commented 8 months ago

我删除了那一行,重启了vscode之后运行,但还是之前的报错

shinyypig commented 8 months ago
image

重置这个选项试试。你现在这个报错说明 python 没有成功启动,你可以注意一下首次启动时终端中输入的指令。

Gew404 commented 8 months ago

非常感谢!重置后已解决问题