ImportError: cannot import name 'HTMLAwareEntitySubstitution'

前端 未结 1 1911
别那么骄傲
别那么骄傲 2020-12-20 17:30

I just setup beautifulsoup4-4.1.0 and upgrade pip to version 9.0.1. When I write this :

from bs4 import BeautifulSoup

error occurs:

相关标签:
1条回答
  • 2020-12-20 18:23

    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

    0 讨论(0)
提交回复
热议问题