RuntimeErros:Could not find directory Matlab engine for Python

10 ビュー (過去 30 日間)
Fengxi Li
Fengxi Li 2023 年 9 月 28 日
回答済み: Fengxi Li 2023 年 9 月 30 日
I have successfully installed Matlab Engine for python. But when I test the package, it reported " RuntimeError("Could not find directory: {0}".format(engine_dir)) RuntimeError: Could not find directory: C:\Program Files\MATLAB\R2022b\extern\engines\python\dist\matlab\engine\win64"
Anyone know how to solve the issue?
I'm using Win11 os. The matlab version is R2022b
I have uploaded the screen shots in the appendix.

回答 (1 件)

Fengxi Li
Fengxi Li 2023 年 9 月 30 日
Well, the issue seems to have been solved.
Actually I installed Matlab App in C disk/ Program files, which requires high permission.
I reinstalled Matlab in a new files under C disk and installed the engine again.
When I tested codes, is seemed not error occurred.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by