Cannot import umap: cannot import name 'structref' from 'numba.experimental'

3.1k views Asked by At

I tried to import umap in my jupyter notebook but had the following error:

ImportError: cannot import name 'structref' from 'numba.experimental' (C:\Users\name\Anaconda3\lib\site-packages\numba\experimental\__init__.py)

I tried to update conda but doesn't work. What can I do ?

1

There are 1 answers

0
James On

The numba.experimental subpackage was added in version 0.51.0. You can check your version of number using:

import numba

numba.__version__

If it is less then 0.51.0, you will need to install a newer version.

conda install numba=0.51.*