在我的程序中,我使用了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
我使用Python2.7.15中的pip.exe
从命令行安装了bs4
pip install bs4
我试过了pip install beautifulsoup4
,它说安装一切就绪
您的
import
中有一个输入错误。。。应该是:然后您就可以导入它了
相关问题 更多 >
编程相关推荐