2014-12-19 5 views
4

저는 우분투 14.04이고 numba 0.15가 정상적으로 작동했습니다.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

[이]와 관련된 비슷한 문제가있을 수 있습니다 (http://stackoverflow.com/questions/28782512/getting-python-numba-working-on-ubuntu-14-10-or-fedora-21-with). -python-2-7) 우분투에 numba 설치하기 – eusoubrasileiro

답변

1

대답은 here 찾을 수 있습니다

이 Numba 0.16는 LLVM 라이브러리 주위에 우리의 래퍼로서 llvmlite하는 llvmpy를 사용하여 변경되었습니다.

(. 우리는 또한 같은 시간에 LLVM 3.3에서 LLVM 3.5로 업그레이드) 설치 과정은 여기에 설명되어 있습니다 :

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

관련 문제