problem with python numpy
I have started to try to use python functionality in matlab. The <https://ch.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html 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. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try `git clean -xdf` (removes all
files 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:ProgramDataAnaconda3python.exe’
library: ‘C:ProgramDataAnaconda3python36.dll’
home: ‘C:ProgramDataAnaconda3’
isloaded: 1
Maybe I am doing something wrong?I have started to try to use python functionality in matlab. The <https://ch.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html 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. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try `git clean -xdf` (removes all
files 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:ProgramDataAnaconda3python.exe’
library: ‘C:ProgramDataAnaconda3python36.dll’
home: ‘C:ProgramDataAnaconda3’
isloaded: 1
Maybe I am doing something wrong? I have started to try to use python functionality in matlab. The <https://ch.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html 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. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try `git clean -xdf` (removes all
files 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:ProgramDataAnaconda3python.exe’
library: ‘C:ProgramDataAnaconda3python36.dll’
home: ‘C:ProgramDataAnaconda3’
isloaded: 1
Maybe I am doing something wrong? python, python call, numpy, python in matlab, numpy framework MATLAB Answers — New Questions