在我的程序中,我使用了 from bs4 import BeatifulSoup
我得到的错误。
Traceback (most recent call last):
File "D:\Noahs program\python black hat\retrievescreenshot.py", line 2, in <module>
from bs4 import BeatifulSoup
ImportError: cannot import name BeatifulSoup
我从命令行安装了bs4,命令是 pip.exe
从python 2.7.15开始。
pip install bs4
我已经尝试了 pip install beautifulsoup4
它说安装已经满足。
pip install beautifulsoup4
然后你就可以导入它
你在你的 import
... 它应该是。
from bs4 import BeautifulSoup #<-- not BeatifulSoup