站点图标 AI技术聚合

python numpy 错误:AttributeError: module ‘numpy‘ has no attribute ‘bool‘

Table of Contents

问题

跑代码(pyCUDA,pyTensorRT相关)的时候numpy报错
”AttributeError: module 'numpy' has no attribute 'bool'“

解决方案

numpy1.22.x升级到1.23.1

灵感来自于下面的回答
https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool

文章出处登录后可见!

已经登录?立即刷新
退出移动版