ImportError: cannot import name 'HTMLAwareEntitySubstitution'

流过昼夜 提交于 2019-11-29 13:45:39
jinksPadlock

In the version you have it appears that there might be an error in bs4/builder/__init__.py.

This line, from .. import _htmlparser should be: from . import _htmlparser

However, I would suggest re-installing the package using current version of pip before you go off the beaten path and try editing the source code.

To re-install: pip install --upgrade --force-reinstall beautifulsoup4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!