解决python无法安装bs4的问题
忙了一天都没装上bs4,中途陆陆续续地遇到了好几个问题:
‘The soupsieve package is not installed. CSS selectors cannot be used.’
ERROR: No matching distribution found for html5lib==1.0b8
AttributeError: module ‘html5lib.treebuilders’ has no attribute ‘_base’
我遇到的一系列问题就是版本不匹配导致的,把能想到可能有问题的库全更新一遍,多种问题一次性解决:
pip install --user --upgrade beautifulsoup4
pip install --user --upgrade soupsieve
pip install --user --upgrade html5lib
淦!总之是很小的事情浪费了一天时间。希望能帮到遇到这个问题的朋友。