首页 > Web开发 > 详细

AttributeError: module 'html5lib.treebuilders' has no attribute '_base'

时间:2018-08-09 11:58:29      阅读:612      评论:0      收藏:0      [点我收藏+]
遇到错误:AttributeError: module ‘html5lib.treebuilders‘ has no attribute ‘_base‘
解决:pip install --upgrade html5lib==1.0b8

讨论:
网上一:大概就是说html5lib里面的treebuilders里面没有_base这个属性
去html5lib这个文件夹里(pip install的文件),找到treebuilders这个文件夹,然后看到里面的确没有_base.py。而是有一个base.py。我就把base.py前面加了一个_,改为_base.py。

参考链接:

TreeBuilderForHtml5lib ‘module‘ object has no attribute ‘_base‘ #554

https://blog.csdn.net/jifaley/article/details/62231615

https://blog.csdn.net/friendan/article/details/52439031

AttributeError: module 'html5lib.treebuilders' has no attribute '_base'

原文:https://www.cnblogs.com/hozhangel/p/9447777.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!