Problem with installing email

I wanted to install email using pip install email
but termux gave an error:
SyntaxError: multiple exception types must be parenthesized
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1

Termux
Python version 3.12.8

The email package has not been update since 2007.
See the page on PyPI email · PyPI
That is very likely why it will not install.

Suggest you find a maintained package as an alternative.