Error using subprocess​>_execute_​child (line 1311) Python Error: FileNotFoundError: [WinError 2] The system cannot find the file specified

조회 수: 36(최근 30일)
when i call to my python script from matlab i fet this error:
Error using subprocess>_execute_child (line 1311)
Python Error: FileNotFoundError: [WinError 2] The system cannot find the file specified
Error in subprocess>__init__ (line 858)
Error in utils>mediainfo_json (line 274)
Error in audio_segment>from_file (line 728)
how can i fix it?

답변(1개)

Yongjian Feng
Yongjian Feng 2022년 2월 9일
Most of the times, this kind of error can be fixed by setting the env var PYTHONPATH inside matlab.
So figure out what file/package python has trouble to find, figure out where it is, and then add it to the PYTHONPATH env var inside matlab.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by