ERpnext Installation error on bench installation

When I am running this code

 sudo pip3 install frappe-bench

it is showing

  Preparing metadata ( ... error
  error: subprocess-exited-with-error

  × python egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "/usr/local/lib/python3.10/dist-packages/setuptools/", line 20, in <module>
          from setuptools.dist import Distribution, Feature
        File "/usr/local/lib/python3.10/dist-packages/setuptools/", line 35, in <module>
          from setuptools.depends import Require
        File "/usr/local/lib/python3.10/dist-packages/setuptools/", line 7, in <module>
          from .py33compat import Bytecode
        File "/usr/local/lib/python3.10/dist-packages/setuptools/", line 55, in <module>
          unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
      AttributeError: 'HTMLParser' object has no attribute 'unescape'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.```

I am searching but nothing exact like this. 

thank you