2014-12-19 76 views
4

我在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

有什麼想法?

+0

您可能會遇到與[this]相關的類似問題(http://stackoverflow.com/questions/28782512/getting-python-numba-working-on-ubuntu-14-10-or-fedora-21-withwith -python-2-7)在Ubuntu上安裝numba – eusoubrasileiro

回答

1

答案可以發現here

Numba 0.16從使用llvmpy到llvmlite作爲我們周圍的LLVM庫包裝改變。 (我們也同時升級從LLVM 3.3至3.5 LLVM)

這裏描述的安裝過程:

https://github.com/numba/numba/blob/master/README.md#custom-python-environments下面新建鏈接...

(另請注意,llvmlite( 。很像LLVM 3.5)需要C++ 11編譯器來構建,其可以是硬到在較舊的發行版都通過)

的行是:

https://github.com/numba/numba/blob/master/README.rst#custom-python-environments

+0

該鏈接不再工作。 – Peter

相關問題