Upgrading to numba 0.16 using pip results in an error

I am working on Ubuntu 14.04 and I have numba 0.15 working fine.

I ran:

pip install --user --upgrade numba

to upgrade to numba 0.16, but now when I try to import numba, I get the following error:

~/.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

This is very strange because I found this:

Q: Do I need to delete or update llvmpy?

A: No, Numba no longer uses llvmpy.

from here: https://groups.google.com/a/continuum.io/forum/#!topic/numba-users/cGKF7MORo7o

any ideas?

+4
source share
1 answer

The answer can be found here :

Numba 0.16 llvmpy llvmlite LLVM. ( LLVM 3.3 LLVM 3.5 .)

:

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

( , llvmlite ( LLVM 3.5) ++ 11 , .)

:

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

+1

Source: https://habr.com/ru/post/1568399/


All Articles