Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?
1 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-9-22
回答: MathWorks Support Team
2020-9-22
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
2020-9-22
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!