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 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀