AttributeError: module 'numpy' has no attribute 'numpy'
时间: 2023-08-29 20:05:10 浏览: 290
引用中提到的报错"AttributeError: module 'numpy' has no attribute 'int'"通常是由于Python或NumPy版本不兼容导致的。和的建议,可以尝试降低NumPy的版本,将numpy的版本设置为==1.18.5或更低版本,并重新运行"pip install -r requirements.txt"命令。
这样应该能够解决报错问题。如果还有其他问题,请随时在评论区交流讨论。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Numpy报错:AttributeError: module ‘numpy‘ has no attribute ‘int](https://blog.csdn.net/m0_47026232/article/details/128887778)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [解决 AttributeError: module ‘numpy‘ has no attribute ‘int‘ 训练yolo时的问题](https://blog.csdn.net/qq_45892443/article/details/129935378)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [AttributeError: module numpy has no attribute int .报错解决方案](https://blog.csdn.net/weixin_46669612/article/details/129624331)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文