問題
跑代碼(pyCUDA,pyTensorRT相關)的時候numpy
報錯”AttributeError: module 'numpy' has no attribute 'bool'“
解決方案
把numpy
從1.22.x
升級到1.23.1
文章來源:http://www.zghlxwxcb.cn/news/detail-519398.html
靈感來自于下面的回答
https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool文章來源地址http://www.zghlxwxcb.cn/news/detail-519398.html
到了這里,關于python numpy 錯誤:AttributeError: module ‘numpy‘ has no attribute ‘bool‘的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!