beautifulsoup, html5lib: module object has no attribute _base

前端 未结 8 2138
逝去的感伤
逝去的感伤 2020-12-04 18:57

When I updated my packages I have this new error:

class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: \'module\' object ha         


        
8条回答
  •  死守一世寂寞
    2020-12-04 19:30

    Just install html5lib using this because if you install the normal way then you have to spider using python2.

    sudo pip3 install html5lib==0.9999999
    

提交回复
热议问题