代码收藏家 技术教程 2023-06-28 解决“AttributeError: module ‘numpy’ has no attribute ‘bool’”错误 问题原因:在numpy的1.24版本已经弃用了np.bool这个名称,取而代之的是np.bool_ 解决方法: 1.点击出错文件 2.将np.bool更改为np.bool_ 您可能感兴趣的内容: 安装 跨模态模型CLIP 或是遇到 AttributeError: module ‘clip‘ has no attribute ‘load‘ 解决:import pyspark报错:AttributeError: module ‘os‘ has no attribute ‘add_dll_directory‘ 在运行opencv时出现的两个问题:AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘ AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/yolov5-5.0/models/commo AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘ numpy Python python 深度学习 物联沃分享整理物联沃-IOTWORD物联网 » 解决“AttributeError: module ‘numpy’ has no attribute ‘bool’”错误