z13346287661 2022-10-15 11:46 采纳率: 83.3%
浏览 14
已结题

关于#python#的问题,如何解决?

导入import numba报错

C:\Users\lenovo>python
Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numba
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\__init__.py", line 38, in <module>
    from numba.core.decorators import (cfunc, generated_jit, jit, njit, stencil,
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\decorators.py", line 12, in <module>
    from numba.stencils.stencil import stencil
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\stencils\stencil.py", line 11, in <module>
    from numba.core import types, typing, utils, ir, config, ir_utils, registry
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\registry.py", line 4, in <module>
    from numba.core import utils, typing, dispatcher, cpu
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\dispatcher.py", line 13, in <module>
    from numba.core import (
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\compiler.py", line 6, in <module>
    from numba.core import (utils, errors, typing, interpreter, bytecode, postproc,
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\cpu.py", line 16, in <module>
    import numba.core.entrypoints
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\numba\core\entrypoints.py", line 4, in <module>
    from importlib_metadata import entry_points
ModuleNotFoundError: No module named 'importlib_metadata'

  • 写回答

2条回答 默认 最新

  • Ko-walski 2022-10-15 13:14
    关注

    pip install importlib_metadata
    安装试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月23日
  • 已采纳回答 10月15日
  • 创建了问题 10月15日

悬赏问题

  • ¥15 帮我调试idea基于spring boot项目
  • ¥15 es 7.17.20版本生成时间戳
  • ¥15 wpf dategrid表头排序图标自定义
  • ¥15 分析下图所示同步时序逻辑电路的逻辑功能。
  • ¥15 halcon联合c#遇到了问题不能解决
  • ¥15 xshell无法连接提示ssh服务器拒绝密码
  • ¥15 AT89C52单片机C语言关于串口通信的位操作
  • ¥20 需要步骤截图(标签-服务器|关键词-map)
  • ¥50 gki vendor hook
  • ¥15 灰狼算法和蚁群算法如何结合