How do I solve this Python error message “No module named ‘numpy’ ” in MATLAB Online ?
I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1 I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1 python, simulink, machine learning, toolbox MATLAB Answers — New Questions