我跑了:
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,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 llimportError: 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
有任何想法吗?
解决方法 答案可以找到 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)需要构建C 11编译器,这在较旧的发行版中很难实现.)
这条线是:
https://github.com/numba/numba/blob/master/README.rst#custom-python-environments
总结以上是内存溢出为你收集整理的python – 使用pip升级到numba 0.16会导致错误全部内容,希望文章能够帮你解决python – 使用pip升级到numba 0.16会导致错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)