I'm working with python in matlab and I'm trying to import numpy but I can't.
First I created an env in conda:
conda create -n matlab python=3.7 numpy
Then I set it in matlab prompt:
pyversion('C:\Users\Familia\.conda\envs\matlab\python.exe')
>> pyenv
ans =
PythonEnvironment with properties:
Version: "3.7"
Executable: "C:\Users\Familia\.conda\envs\matlab\python.exe"
Library: "C:\Users\Familia\.conda\envs\matlab\python37.dll"
Home: "C:\Users\Familia\.conda\envs\matlab"
Status: NotLoaded
ExecutionMode: InProcess
Then when I try to see if I have numpy I got this:
>> help('numpy')
numpy not found.
Use the Help browser search field to search the documentation, or type "help help" for help command options, such as help for methods.
and If I try
py.importlib.import_module('numpy')
I got this:
What I missed?