Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?

1 次查看(过去 30 天)
I am using 'OutOfProcess' to execute a sequence of Python commands including reading some files in MATLAB.
Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?

采纳的回答

MathWorks Support Team
When executing Python commands including reading files in 'OutOfProcess' mode in MATLAB, the files remain open in a separately running Python process and need to be closed explicitly in Python using the 'close()' command in order to be able to move or delete them.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

尚未输入任何标签。

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by