ModuleNotFoundError: No module named 'bs4'
Traceback (most recent call last): File "spider_main.py", line 4, in <module> import html_parser File "C:\Users\diyif\Desktop\spider\html_parser.py", line 1, in <module> from bs4 import BeautifulSoup ModuleNotFoundError: No module named 'bs4'
已经尝试重新安装bs4 还以为是Python版本的问题。
当安装
pip3 install beautifulsoup4
时,显示已安装
Requirement already satisfied: BeautifulSoup4 in c:\users\diyif\appdata\local\programs\python\python37\lib\site-packages (4.6.3)
我改如何是好?谢大神解答