Why is the installation of the MATLAB Engine API for Python failing?
8 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-4-3
编辑: MathWorks Support Team
2025-10-10
I'm trying to install MATLAB Engine API for Python with:
D:\>python "C:\Program Files\MATLAB\R2017b\extern\engines\python\setup.py" install
But it is failing with the following error:
running install running build running build_py error: package directory 'dist\matlab' does not exist
采纳的回答
MathWorks Support Team
2025-10-10
编辑:MathWorks Support Team
2025-10-10
Change directory into matlabroot/extern/engines/python and start "python setup.py install" there.
As noted in the
, "python setup.py install" must be started inside the directory of setup.py. Starting from other locations will result in an error.
By default, the installer builds the engine API for Python in the matlabroot\extern\engines\python folder. The installer installs the engine in the default Python folder. To use non-default folders, refer to:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!