Hello, I'm trying to use python code in matlab.
However, numpy seems to occur some errors below.
Error using __init__><module>
Python Error: ImportError: Unable to import required dependencies:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.9 from "C:\Program Files\MATLAB\R2022a\bin\win64\MATLAB.exe"
* The NumPy version is: "1.20.3"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found.
Error in <string>><module> (line 25)
From anaconda prompt, python is version 3.9 and numpy is version 1.20.3.
And, Matlab is connected to the anaconda
PythonEnvironment with properties:
Executable: "C:\Users\middl\anaconda3\python.EXE"
Library: "C:\Users\middl\anaconda3\python39.dll"
Home: "C:\Users\middl\anaconda3"
It looks like pandas is working. Would you tell me why I cannot use numpy?