[英]jupyter notebook raises AttributeError
我正在使用 jupyter notebook 来测试我的 python 包,但是当我尝试运行我的包时,jupyter 引发了以下问题:
AttributeError: module 'logging' has no attribute 'config'
这里有一个类似的问题: Jupyter Notebook - Attribute Error: 'module' object has no attribute 'F_OK'但是解决方案(降级 conda 和 python)对我来说并不令人满意。 有没有人有其他想法? 现在我只是在我的代码中注释该行并且它有效但它不是很方便......
您只需要添加import logging.config
就可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.