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
python numpy 错误:AttributeError: module ‘numpy‘ has no attribute ‘bool‘_第1张图片

你可能感兴趣的:(TensorRT,cuda,python,python,numpy,开发语言)