Cannot import name 'set_parallel_chunksize' from 'numba.np.ufunc'

Hi!

I’m trying to import numba to use umap but I’m getting the following problem. I have tried reinstalling.

----> 1 import numba

~/anaconda3/lib/python3.9/site-packages/numba/init.py in
40
41 # Re-export vectorize decorators and the thread layer querying function
—> 42 from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
43 get_num_threads, set_num_threads,
44 set_parallel_chunksize, get_parallel_chunksize,

ImportError: cannot import name ‘set_parallel_chunksize’ from ‘numba.np.ufunc’ (/home/sputnik/anaconda3/lib/python3.9/site-packages/numba/np/ufunc/init.py)

Does anyone has an idea how this can be solved?

How did you install / reinstall Numba?

I tried both pip install numba and installing using conda.

The issue somehow resolved itself. Unfortunately I do not understand why.