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

问题

跑代码(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

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
扎眼的阳光的头像扎眼的阳光普通用户
上一篇 2023年9月2日
下一篇 2023年9月2日

相关推荐