ImportError: cannot import name 'lanms' from 'nmslib'
时间: 2023-08-24 17:09:56 浏览: 126
回答: 这个错误是由于在nmslib库中无法导入名为'lanms'的模块引起的。根据引用\[3\]的建议,您可以尝试重新下载nmslib库并重新上传代码,同时确保没有启用"Optimize imports"选项。这可能会解决该错误。如果问题仍然存在,您可以查看nmslib库的文档或寻求相关支持来解决此问题。
#### 引用[.reference_title]
- *1* *2* [Python 修复 ImportError: cannot import name Markup from jinja2](https://blog.csdn.net/Deng872347348/article/details/129127907)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Python ImportError: cannot import name XXX from XXX 问题的一个起因和解决方案](https://blog.csdn.net/lockt6531590/article/details/126362955)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文