I have a problem. I am using Windows 7 32x, Python 3.
When I try to import the numpy library in code, no matter what, I get an error. I don't remember how to solve it.
The code itself:
import numba
print('Hello World!')
And here is the error:
Traceback (most recent call last):
File "C:\Users\User\Desktop\numba_test.py", line 1, in <module>
import numba
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\__init__.py", line 38, in <module>
from numba.core.decorators import (cfunc, generated_jit, jit, njit, stencil,
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\decorators.py", line 12, in <module>
from numba.stencils.stencil import stencil
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\stencils\stencil.py", line 11, in <module>
from numba.core import types, typing, utils, ir, config, ir_utils, registry
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\registry.py", line 4, in <module>
from numba.core import utils, typing, dispatcher, cpu
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\dispatcher.py", line 13, in <module>
from numba.core import (
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\compiler.py", line 6, in <module>
from numba.core import (utils, errors, typing, interpreter, bytecode, postproc,
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\cpu.py", line 15, in <module>
import numba.core.entrypoints
File "C:\Users\User\AppData\Roaming\Python\Python37\site-packages\numba\core\entrypoints.py", line 8, in <module>
import importlib_metadata
ValueError: source code string cannot contain null bytes
I have reinstalled numba several times, searched for solutions on the Internet, but all without success. Help what you can.