Hi, I have jupyterlab installed in my base conda env. Now, I created another evn and installed its kernel using kernelspec. But, when I attach a notebook to this kernel and try to import numpy, I get DLL load failed while importing _multiarray_umath error.
Steps to reproduce the error:
- Install jupyterlab in base env(do not install numpy in it, just have jupyterlab)
- Create a new env with numpy in it.
- Activate this env.
- Install its kernel with the command “python -m ipykernel install --user --name env_name --display-name env_display_name”
- Open jupyterlab and attach a notebook to this kernel
- import numpy
When I install numpy in base env along with jupyterlab, I am able to import numpy from the installed kernel (the same version of numpy as in the installed kernel). But, I don’t think this is a fix more like a hacky way(which I don’t know why it works).
I would really appreciate any help. I have attached a screenshot below for reference.