I'm trying to import numba. I installed llvmlite and numba using the instructions found here (https://github.com/numba/numba#custom-python-environments) however I get the following error when import numba.
Traceback (most recent call last):
File "kayhan.py", line 6, in <module>
from numba import *
File "/usr/local/lib/python3.4/dist-packages/numba/__init__.py", line 7, in <module>
from . import testing, decorators
File "/usr/local/lib/python3.4/dist-packages/numba/testing.py", line 6, in <module>
from numba import config
File "/usr/local/lib/python3.4/dist-packages/numba/config.py", line 9, in <module>
import llvmlite.binding as ll
File "/usr/local/lib/python3.4/dist-packages/llvmlite/binding/__init__.py", line 6, in <module>
from .dylib import *
File "/usr/local/lib/python3.4/dist-packages/llvmlite/binding/dylib.py", line 4, in <module>
from . import ffi
File "/usr/local/lib/python3.4/dist-packages/llvmlite/binding/ffi.py", line 36, in <module>
lib = ctypes.CDLL(os.path.join(_lib_dir, get_library_name()))
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.4/dist-packages/llvmlite/binding/libllvmlite.so: undefined symbol: _ZNSt14error_categoryC2Ev
I had a similar issue with llvm 3.6 on Ubuntu 14.04. Try:
apt-get install gcc-4.8 g++-4.8 libedit-dev llvm-3.6-dev
LLVM_CONFIG=/usr/lib/llvm-3.6/bin/llvm-config CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 pip install numba
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With