AttributeError: module 'html5lib.treebuilders' has no attribute '_base'
遇到错误: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