ImportError: cannot import name ‘jitclass’ from ‘numba’ (/opt/conda/lib/python3.7/site-packages/numba/

You get this error with python when you try from numba import jit, jitclass

How to fix : cannot import name ‘jitclass’ from ‘numba’ (/opt/conda/lib/python3.7/site-packages/numba/

You only need to import differently jitclass :

From :

from numba import jitclass

You need to use now :

from numba.experimental import jitclass

Internal links :

Leave a Reply

Your email address will not be published. Required fields are marked *