2

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 ?

jos97
  • 405
  • 6
  • 18

1 Answers1

2

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.*
James
  • 32,991
  • 4
  • 47
  • 70