2024-10-04 09:24:50 发布
网友
我使用的是Python.7.10,并使用pip安装了beautifulsoup。已成功安装程序包。但当我试图导入BeautifulGroup时,我得到了一个错误:
ImportError: No module named beautifulsoup
我查看了已安装模块的列表,在已安装模块列表中找到了BeautifulGroup模块:
您安装了美化组版本3;该模块名为BeautifulSoup,大写B和S:
BeautifulSoup
B
S
from BeautifulSoup import BeautifulSoup
请参阅Quickstart documentation。
你真的想升级到美化组4。美团3号于2012年停产。
要安装版本4,请使用:
pip install beautifulsoup4
并导入bs4:
bs4
from bs4 import BeautifulSoup
不过,在继续之前,一定要研究project documentation。
您安装了美化组版本3;该模块名为
BeautifulSoup
,大写B
和S
:请参阅Quickstart documentation。
你真的想升级到美化组4。美团3号于2012年停产。
要安装版本4,请使用:
并导入
bs4
:不过,在继续之前,一定要研究project documentation。
相关问题 更多 >
编程相关推荐