partially initialized module 'numpy' has no attribute 'array' (most likely due to a circular import
时间: 2023-08-22 22:03:58 浏览: 221
wgsbmisi.zip_DOA工具箱_FMCW waveform_radar_调频DOA
回答: 这个错误是由于循环导入导致的。循环导入是指两个或多个模块相互导入,从而形成一个无限循环的导入关系。在你的情况下,错误信息显示了numpy模块的array和identity属性无法找到,这很可能是由于循环导入导致的。解决这个问题的方法是修改文件名,确保文件名不是类名或包名。这样可以避免与numpy包的名称冲突。修改后重新执行程序应该就可以成功了。
#### 引用[.reference_title]
- *1* [ partially initialized module ‘numpy‘ has no attribute ‘array‘ (most likely due to a](https://blog.csdn.net/qq_58723596/article/details/128808903)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [partially initialized module ‘numpy‘ has no attribute ‘identity‘ (most likely due to a circular ...](https://blog.csdn.net/weixin_48697962/article/details/125617339)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [partially initialized module ‘numpy‘ has no attribute ‘array‘ (most likely due to a circular ...](https://blog.csdn.net/u010608296/article/details/120530672)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文