当我尝试运行使用numba的python文件.py时,它会给我以下错误
Traceback (most recent call last):
File "C:\Myfile.py", line 16, in <module>
import myfile2 as m
File "C:\myfile2.py", line 8, in <module>
import numba
File "C:\Python27\lib\site-packages\numba\__init__.py", line 9, in <module>
from . import config, errors, runtests, types
File "C:\Python27\lib\site-packages\numba\config.py", line 11, in <module>
import llvmlite.binding as ll
File "C:\Python27\lib\site-packages\llvmlite\binding\__init__.py", line 6, in <module>
from .dylib import *
File "C:\Python27\lib\site-packages\llvmlite\binding\dylib.py", line 4, in <module>
from . import ffi
File "C:\Python27\lib\site-packages\llvmlite\binding\ffi.py", line 50, in <module>
raise e
WindowsError: [Error 126] The specified module could not be found
我已经尝试过如下命令propmt中的numba:
pip install numba
但它给了我一条消息,表明它已经存在
之前 Requirements already satisfied...........etc
所以有人可以帮我解决这个错误吗?还有如何安装numba并将其与llvm和llvmlite链接?
答案 0 :(得分:0)
我已卸载python并重新安装它 并按顺序安装以下软件包
pip install scikit_learn
pip install numby+mkl
pip install scipy
pip install numba
pip install matplotlib
我也安装了mini conda,它的工作正常