这个错误是因为你正在尝试在Python 3下运行一个非常旧的Beautiful Soup版本。解决方法是使用BeautifulSoup-4(即beautifulsoup4)的pip包。你可以运行以下命令来安装BeautifulSoup-4:

pip install beautifulsoup4

安装完成后,你就可以使用BeautifulSoup-4了。

Collecting BeautifulSoup Using cached BeautifulSoup-322targz 32 kB Installing build dependencies done Getting requirements to build wheel error error subprocess-exited-with-error × Getting requ

原文地址: https://www.cveoy.top/t/topic/h3vq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录