ModuleNotFoundError: No module named 'bs4'

ModuleNotFoundError: No module named 'bs4'
Photo by Chris Ried / Unsplash

由于没安装beautifulsoup模块导致的,安装下就好了

20201229173034.png
pip install beautifulsoup4
或者
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple beautifulsoup4