numba: ImportError: Numba could not be imported
After installing numba on Win7, the test does not work:
C:\Windows\System32>python3 -m numba -s
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\core\typeco
nv\typeconv.py", line 4, in <module>
from numba.core.typeconv import _typeconv
ImportError: DLL load failed: No se puede encontrar el módulo especificado.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\runpy.py", line 183, in _run_mo
dule_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\runpy.py", line 142, in _get_mo
dule_details
return _get_module_details(pkg_main_name, error)
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\runpy.py", line 109, in _get_mo
dule_details
__import__(pkg_name)
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\__init__.py
", line 20, in <module>
from numba.misc.special import (
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\misc\specia
l.py", line 3, in <module>
from numba.core.typing.typeof import typeof
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\core\typing
\__init__.py", line 1, in <module>
from .context import BaseContext, Context
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\core\typing
\context.py", line 11, in <module>
from numba.core.typeconv import Conversion, rules
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\core\typeco
nv\rules.py", line 2, in <module>
from .typeconv import TypeManager, TypeCastingRules
File "C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\numba\core\typeco
nv\typeconv.py", line 17, in <module>
raise ImportError(msg % (url, reportme, str(e), sys.executable))
ImportError: Numba could not be imported.
If you are seeing this message and are undertaking Numba development work, you m
ay need to re-run:
python setup.py build_ext --inplace
(Also, please check the development set up guide http://numba.pydata.org/numba-d
oc/latest/developer/contributing.html.)
If you are not working on Numba development:
Please report the error message and traceback, along with a minimal reproducer
at: https://github.com/numba/numba/issues/new
If more help is needed please feel free to speak to the Numba core developers
directly at: https://gitter.im/numba/numba
Thanks in advance for your help in improving Numba!
The original error was: 'DLL load failed: No se puede encontrar el módulo especi
ficado.'
--------------------------------------------------------------------------------
If possible please include the following in your error report:
sys.executable: C:\PROGRA~1\QGIS3~1.12\bin\python3.exe
C:\Windows\System32>
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (11 by maintainers)
For those running into this issue, does installing the latest Visual Studio Redistributable from Microsoft resolve the issue?