I have been stuck with this problem since a couple of days ago. I wanted to use numba for a project, so I created a conda environment in python=3.10.4
conda create -n scycom
Then I install the packages I need from the main repository
conda install numpy scipy numba matplotlib jupyter
which results in the installation of numpy=1.21.5 and numba=0.55.1
When I am done installing I run jupyter lab jupyter lab --port=8888
and create a notebook. When I type from numba import jit
, I get the following error message
ImportError: Numba needs NumPy 1.21 or less
with a problem apparently arising with _ensure_critical_deps()
. This is puzzling because numpy is version 1.21.5.
My attempts to fix this problem
Given that it seemed a compatibility issues, I tried downgrading to numpy=1.20.1 but the problem persists and, sometimes, other compatibility issues with glib show up. In fact, the exact same error message arises
I created an environment with python=3.8.13, with numpy=1.20.1 and numba=0.55.1, facing the exact same error messages
I tried different combinations of libraries but I could solve this incompatibility
I tried a few internet solutions but I did not find that any really fit into my problem
I hope somebody willing to help has faced and solved a similar issue