Error Installing MATLAB engine API for Python

470 ビュー (過去 30 日間)
Ashleen Hayes
Ashleen Hayes 2017 年 2 月 13 日
コメント済み: Abdulaziz 2022 年 8 月 29 日
I am trying to install the MATLAB engine for Python on my computer and when I write
python install
I get the following error:
error: could not create 'build': Access is denied
The same error also occurs when I try 'builddir'
I also have administrator access on my computer so I am confused as to why I am being denied.
Any help would be greatly appreciated!
  2 件のコメント
wallflower 2021 年 1 月 2 日
Thank you Aatman !



Bo Li
Bo Li 2017 年 2 月 13 日
On Windows, you may need to run the prompt as administrator in order to write to protected folders even if you have administrator access.
Try to search "cmd" on Start and right click on it, select "Run as administrator" to see how it works.
  8 件のコメント
James li
James li 2022 年 8 月 6 日
Wow! it works


その他の回答 (1 件)

Jed Frey
Jed Frey 2017 年 10 月 24 日
A better solution, especially if you don't have Admin access to the machine, is to specify the build directory:
python build -b C:\Temp install
  2 件のコメント
Abdulaziz 2022 年 8 月 29 日
You can use the following:
Please change <<username>> to your username on the machine
python build --build-base="C:\Users\<<USERNAME>>\Documents\MATLAB\pythonengine-build" install


Community Treasure Hunt

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

Start Hunting!

Translated by