Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of "ImportError: cannot import name & # 039" error occurred in bs4 under Python 3.6.HTMLParseErrorship error 039;

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to solve the problem of "ImportError: cannot import name 'HTMLParseError' error in bs4 under Python 3.6.The content is concise and easy to understand, and it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

The version I use is beautifulsoup4-4.5.3, which references from bs4 import BeautifulSoup in the code and prompts "ImportError: cannot import name 'HTMLParseError" at run time.

-- reason: BeautifulSoup does not support versions above Python3.5

Solution: the problem can be solved by lowering the PYTHON version to 3.4.

The above content is how to solve the problem of "ImportError: cannot import name 'HTMLParseError' error in bs4 under Python 3.6. have you learned any knowledge or skills? if you want to learn more skills or enrich your knowledge reserve, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report