AttributeError: module 'matlabeng​ineforpyth​on3_8' has no attribute 'createProcess'

8 ビュー (過去 30 日間)
Bruce Ho
Bruce Ho 2025 年 1 月 2 日
編集済み: Walter Roberson 2025 年 1 月 2 日
I went through the python setup.py install process for extern/engines/python. I did this inside my conda env.
This produced a folder "matlabengineforpython-2020.2-py3.8.egg" in the site-package directory under anaconda.
this name does not meet the naming convention used in __init__.py,
pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
so I created a link
matlabengineforpython3_8 -> matlabengineforpython-2020.2-py3.8.egg/
when I go into my python shell,
>> import matlab.engine
I get error,
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bruceho/anaconda3/envs/cartpole/lib/python3.8/site-packages/matlab/engine/__init__.py", line 86, in <module>
_session = EngineSession()
File "/Users/bruceho/anaconda3/envs/cartpole/lib/python3.8/site-packages/matlab/engine/enginesession.py", line 8, in __init__
pythonengine.createProcess()
AttributeError: module 'matlabengineforpython3_8' has no attribute 'createProcess'
apparently it finds matlabengineforpython3_8 ok, but can't find the create_Process method. I did a grep -r search and indeed don't see this call defined anywhere.
How to fix this?

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by