File "/.../bitcoin-tx-tutorial/venv/lib/python3.12/site-packages/notebook/utils.py", line 15, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
It seems that starting with Python 3.10, the distutils module was marked as deprecated.
As of Python 3.12, it has been completely removed from the standard library.