How to install numba.openmp

I am trying to use multithreading in numba using PyOMP. This doesn’t seem to come with standard numbs installation.

from numba.openmp import openmp_context as openmp

ModuleNotFoundError Traceback (most recent call last)
Input In [42], in
----> 1 from numba.openmp import openmp_context as openmp

ModuleNotFoundError: No module named ‘numba.openmp’`

This work appears to be based on a fork of Numba - it looks like the fork resides at GitHub - Python-for-HPC/PyOMP: OpenMP for Python in Numba

conda install numba cffi -c drtodd13 -c conda-forge --override-channels

I’m the author so please let me know if you have any problems. We are going to try to move this into mainline Numba after it is developed a bit more. In the meantime, you can use the command above.

Thank you. I have used the command, but still i get

from numba.openmp import openmp_context as openmp
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ‘numba.openmp’

1 Like

Did you create a new, clean conda environment to do the install in? Can you try that?

@DrTodd13 I have the same problem as the post author. I tried already your solution on a new Conda environment. Do you have any more tips? :frowning:

You get the exact same error? Did you activate the environment after creating it? Sorry for the simplistic question but I’ve had cases where that was the problem and it’s the first thing to check. Once you’re in the environment, would you please paste the result of “conda list”? Thanks! @roxaaams