0
好吧,我使用python 3.3。我已經安裝了numpy,llvm,llvmpy,llpyhton,llvm_array,llvm_cbuilder和llvmath。我也安裝了Numba。麻煩導入numba
但是,當試圖通過import numba
導入時,會出現以下錯誤。我不知道什麼可能會丟失:
Traceback (most recent call last):
File "/home/pablo/workspace/Pruebas/src/Prueba2/__init__.py", line 1, in <module>
import numba
File "/usr/local/lib/python3.3/dist-packages/numba/__init__.py", line 18, in <module>
from numba import utils, typesystem
File "/usr/local/lib/python3.3/dist-packages/numba/utils.py", line 102, in <module>
context = get_minivect_context()
File "/usr/local/lib/python3.3/dist-packages/numba/utils.py", line 100, in get_minivect_context
return NumbaContext()
File "/usr/local/lib/python3.3/dist-packages/numba/minivect/miniast.py", line 138, in __init__
import llvm.core as llvm_py_not_available # llvm-py not available
File "/usr/local/lib/python3.3/dist-packages/llvm/__init__.py", line 6, in <module>
from llvmpy import extra
File "/usr/local/lib/python3.3/dist-packages/llvmpy/extra.py", line 6, in <module>
from llvmpy import _api
ImportError: libLLVM-3.2.so: cannot open shared object file: No such file or directory
任何想法?
您是否檢查過'$ PATH'中是否存在'libLLVM-3.2.so',首先看看可能是'/ usr/lib /'。 'LLVM'目前的版本是'3.3',所以你的系統可能安裝了'3.3'。 – dav1d