I have started to try to use python functionality in matlab. The Textwrapper example works. I now tried other packages, and everytime there is some dependency on numpy I get this message:
>> py.help('numpy')problem in numpy - ImportError: Importing the multiarray numpy extension module failed. Mostlikely you are trying to import a failed build of numpy.If you're working with a numpy git repo, try `git clean -xdf` (removes allfiles not under version control). Otherwise reinstall numpy.Original error was: DLL load failed: Das angegebene Modul wurde nicht gefunden.
If I try to use numpy directly, I get this:
>> x = py.numpy.random.random([4,4]);Undefined variable "py" or class "py.numpy.random.random".
Calling
help('textwrap')
or
help('numpy')
in Python works fine. Calling
py.help('textwrap')
in Matlab works,
py.help('numpy')
does not.
I have tried to update numpy and to remove and reinstall it, but this does nothing. I am using Python 3.6 which should be supported.
>> pyversion version: '3.6' executable: 'C:\ProgramData\Anaconda3\python.exe' library: 'C:\ProgramData\Anaconda3\python36.dll' home: 'C:\ProgramData\Anaconda3' isloaded: 1
Maybe I am doing something wrong?
Best Answer