如何将 numba 和 link 安装到 llvm 和 llvmlite 以将其导入 Python27
how to install numba and link to llvm & llvmlite to import it in Python27
当我尝试 运行 python 使用 numba 的文件 .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
我试过从命令提示符中安装 numba,如下所示:
pip install numba
但它给我一条消息,它在
之前已经存在
Requirements already satisfied...........etc
谁能帮我解决这个错误?还有如何使用 llvm 和 llvmlite 安装 numba 和 link 它?
我已经卸载 python 并重新安装
并按顺序安装以下软件包
pip install scikit_learn
pip install numby+mkl
pip install scipy
pip install numba
pip install matplotlib
我也安装了 mini conda,它也工作正常
当我尝试 运行 python 使用 numba 的文件 .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
我试过从命令提示符中安装 numba,如下所示:
pip install numba
但它给我一条消息,它在
之前已经存在 Requirements already satisfied...........etc
谁能帮我解决这个错误?还有如何使用 llvm 和 llvmlite 安装 numba 和 link 它?
我已经卸载 python 并重新安装 并按顺序安装以下软件包
pip install scikit_learn
pip install numby+mkl
pip install scipy
pip install numba
pip install matplotlib
我也安装了 mini conda,它也工作正常