cannot import name 'helpers' from 'utils'
时间: 2023-09-23 16:08:27 浏览: 321
eslint-plugin-import-helpers:ESLint插件可帮助强制执行导入语句的可配置顺序
根据引用,引发ImportError: cannot import name 'log'的错误可能是由于无法从utils中导入名为helpers的模块。根据引用,最新的版本可能是从pgl.utils中导入helper而不是paddle_helper。因此,建议您检查您的代码中的import语句,并确保正确导入了所需的模块和函数。另外,引用提到,另一种解决方法是在Python安装目录下的site-packages文件夹中添加一个.pth文件,并在其中写入要导入的模块名和本地项目路径,但这种方法并不推荐使用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python.demo.py](https://download.csdn.net/download/weixin_45948912/12011036)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【踩坑】PGL报错cannot import name ‘paddle_helper‘ from ‘pgl.utils](https://blog.csdn.net/sxf1061700625/article/details/130691630)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [python导包错误 ImportError: cannot import name a](https://blog.csdn.net/weixin_39668527/article/details/110988070)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文