0

好的,我正在使用 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

有任何想法吗?

4

1 回答 1

1

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

于 2013-07-22T16:00:23.817 回答