PyCharm项目:ModuleNotFoundError: No module named ‘bs4’
解决办法:
pip install beautifulsoup4
之后,在可以在本地python工作路径的相应目录下找到已安装的bs4模块
运行依然报错:
ImportError: cannot import name ‘BeautifulS’ from ‘bs4’
(C:\Users\l\AppData\Local\Programs\Python\Python37\lib\site-packages\bs4_init_.py)
PyCharm–File–Settings–Python Interpreter–+
依然报错。
代码:from bs4 import BeautifulS
修改为:from bs4 import BeautifulSoup
解决!