Tag Archives: Foundation and application of Python

[Solved] Pycharm error: attributeerror: ‘Htmlparser’ object has no attribute ‘unescape’

Pycharm reported an error attributeerror: ‘Htmlparser’

Python 3.9 error “ attributeerror: 'Htmlparser' object has no attribute 'unescape' ” exception resolution.

It is usually an environmental problem. When creating a project, the environment of the corresponding project will be automatically created

As shown in the figure below, python.exe of a project environment is automatically generated

In the settings, modify the address of your corresponding Python environment to solve the problem

But you can use it before. I don’t know if it’s a python 3.9 problem