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

question

numpyAn error is reported when running code (pyCUDA, pyTensorRT related)
”AttributeError: module 'numpy' has no attribute 'bool'“

solution

upgrade from numpyto1.22.x1.23.1

Inspired by the answer below
https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool
Insert image description here

Guess you like

Origin blog.csdn.net/qq_29007291/article/details/128645097