macOS Mojave 10.14.5
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.9.4
pyenv global 3.9.4
pip3 install -U pip
pip3 install pyinstaller
pip3 install jupyter
pyinstaller ipynb2html.py
--onefile
--add-data "./data_tpl.py:."
--add-data "./py374/share/jupyter/nbconvert/templates/classic:./templates/classic"
--add-data "./py374/share/jupyter/nbconvert/templates/base/:./templates/base"
or
pyinstaller ipynb2html_add_py.py --onefile