我是靠谱客的博主 还单身中心,这篇文章主要介绍RuntimeWarning: Parent module 'settings' not found while handling absolute import,现在分享给大家,希望可以做个参考。
运行一个脚本,产生如下报错:
RuntimeWarning: Parent module 'settings' not found while handling absolute import import os
检查代码逻辑,觉得没有问题。只好上网翻翻解决办法,查到这么一段:
就是用imp导入模块的时候,不要加 "点"。
Don't include a '.' after 'plugins', or Python will think it's a module path!
去掉点后, 问题解决。
最后
以上就是还单身中心最近收集整理的关于RuntimeWarning: Parent module 'settings' not found while handling absolute import的全部内容,更多相关RuntimeWarning:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复