I am using pyinstaller to build my flask application,
everything is working fine except I get problems with Jinja2 templates.
It gave me jinja2.ex
The Jinja2 package uses the pkg_resources API which is not supported by PyInstaller. The pkg_resources module is provided via the setuptools package.
From the FAQ page of pyinstaller:
pkg_resources is currently not supported by PyInstaller. This means that an application using a library which uses the the pkg_resources API will probably not work out of the box. The only situation in which it works is when it's being used on .egg files (see above). For details follow issue #183.