apommel / vscode-matlab-interactive-terminal

VS Code extension allowing for an interactive Matlab terminal and launching of scripts through Matlab Engine for Python
MIT License
46 stars 10 forks source link

“spawnSync $My_Python_Path ENOENT ” #46

Open 2catycm opened 2 years ago

2catycm commented 2 years ago

图片

I just did the following:

  1. search this extension and install
  2. run python setup.py install in /MATLAB/extern/engines/python with admin permisson.
  3. specify my Python path in extension setting.
  4. ctrl+shift+p open an interactive terminal in VSC

My OS is Win11, MATLAB is 2021b, python is anaconda python3.8,

golden0514 commented 2 years ago

I have same problem, add "matlab-interactive-terminal.pythonPath": "/usr/bin/python3", in settings.json, then resolve My os is linux

you can try python import matlab.engine eng = matlab.engine.start_matlab()

if no errors then you can go in vscode

No1res commented 2 years ago

My os is the same as yours. Try to add the installation route of python to your system environment variable