麻烦导入numba

时间:2013-07-22 12:24:16

标签: python python-3.3 numba

好的,我正在使用python 3.3。我安装了numpy,llvm,llvmpy,llpyhton,llvm_array,llvm_cbuilder和llvmath。我也安装了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

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

好的,我发现了什么问题。 我将anaconda文件夹添加到了deafault python3解释器,而不是直接在packages文件夹中安装numba。