AttributeError: module ‘numpy‘ has no attribute ‘int‘

今天在使用yolov5训练时报错 AttributeError: module ‘numpy‘ has no attribute ‘int‘ 结合在网上查了一下 是说版本变动 新版的numpy不支持这个写法,但是yolov5又存在,那咋办呢?
那肯定是降低numpy的版本 我从1.24.0 改成1.21.0 完美解决

你可能感兴趣的:(numpy,python,人工智能)