我已经为anaconda和python 3安装了bs4,但是在vscode中运行某些代码时,它说找不到bs4模块。
Successful Traceback in shell
Requirement already satisfied: beautifulsoup4 in /opt/anaconda3/lib/python3.7/site-packages (from bs4) (4.9.0)
Requirement already satisfied: soupsieve>1.2 in /opt/anaconda3/lib/python3.7/site-packages (from beautifulsoup4->bs4) (1.9.3)
(base) Joshuas-MacBook-Pro:~ joshuag$
Fail traceback in VSCode
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 /Users/joshuag/PycharmProjects/ThingsToKnow/WebScraping.py (base) Joshuas-MacBook-Pro:PycharmProjects joshuag$ /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 /Users/joshuag/PycharmProjects/ThingsToKnow/WebScraping.py Traceback (most recent call last): –
答案 0 :(得分:1)