我在Ubuntu 14.04上,而且我的numba 0.15正常工作。使用pip升級到numba 0.16會導致錯誤
我跑:
pip install --user --upgrade numba
升級到numba 0.16,但現在當我嘗試導入numba我得到以下錯誤:
~/.local/lib/python2.7/site-packages/numba/__init__.py in <module>()
4 from __future__ import print_function, division, absolute_import
5 import re
----> 6 from . import testing, decorators
7 from ._version import get_versions
8 from . import special, types, config
~/.local/lib/python2.7/site-packages/numba/decorators.py in <module>()
5 import warnings
6 from . import sigutils
----> 7 from .targets import registry
8
9 # -----------------------------------------------------------------------------
~/.local/lib/python2.7/site-packages/numba/targets/registry.py in <module>()
1 from __future__ import print_function, division, absolute_import
2
----> 3 from . import cpu
4 from .descriptors import TargetDescriptor
5 from .. import dispatcher, utils, typing
~/.local/lib/python2.7/site-packages/numba/targets/cpu.py in <module>()
3 import sys
4
----> 5 import llvmlite.llvmpy.core as lc
6 import llvmlite.llvmpy.ee as le
7 import llvmlite.binding as ll
ImportError: No module named llvmlite.llvmpy.core
這是很奇怪尤其是因爲我發現這一點:
Q: Do I need to remove or update llvmpy?
A: No, Numba no longer uses llvmpy at all.
從這裏: https://groups.google.com/a/continuum.io/forum/#!topic/numba-users/cGKF7MORo7o
有什麼想法?
您可能會遇到與[this]相關的類似問題(http://stackoverflow.com/questions/28782512/getting-python-numba-working-on-ubuntu-14-10-or-fedora-21-withwith -python-2-7)在Ubuntu上安裝numba – eusoubrasileiro