beautifulsoup模块报错

问题遇到的现象和发生背景

ModuleNotFoundError: No module named 'html.entities'andModuleNotFoundError: No module named 'htmlentitydefs'

问题相关代码,请勿粘贴截图

from bs4 import BeautifulSoup
print(dir(BeautifulSoup))
Str = '''

python
welcome to student
Good Good student
''‘ soup = BeautifulSoup(Str, 'html') print(soup.title)
运行结果及报错内容

ModuleNotFoundError: No module named 'html.entities'

During handling of the above exception, another exception occurred:

ModuleNotFoundError: No module named 'htmlentitydefs'

我的解答思路和尝试过的方法
我想要达到的结果

文件名不能为 “html.py”,编辑的这个文件夹里不许出现"html.py"的文件

没有html.py文件