问题的原因在于对应的python版本 解决方法如下: 1、重建python项目文件夹 2、重新安装BeautifulSoup4,bs4 3、成功 转载于:https://www.cnblogs.com/knowlearner/p/9372445.html