简体   繁体   English

运行 Beautifulsoup 库时遇到问题

[英]Having trouble running Beautifulsoup library

I was able to install the library, however, when I try to run it, it shows me the following error.我能够安装该库,但是,当我尝试运行它时,它显示了以下错误。

Don't know what to do, I am going crazy about it.不知道该怎么办,我快要疯了。 Someone please help me!!有人请帮助我!

problem when running运行时出现问题
installing安装

try this instead of adding 4 to the end.试试这个,而不是在末尾添加 4。

from bs4 import BeautifulSoup

You're importing from Beautifulsoup4 what is the wrong package.您正在从Beautifulsoup4导入错误的 package。 Instead, from bs4 import BeautifulSoup相反, from bs4 import BeautifulSoup

For more details, check the PyPi page of the package: https://pypi.org/project/beautifulsoup4/有关更多详细信息,请查看 package 的 PyPi 页面: https://pypi.org/project/beautifulsoup4/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM