I am trying to use pyinstaller
to create a single executable to distribute to users without Python installed.
The script is a very simple one and just t
I got the same error.
The reason is Jinja2 added new async function for Python3.6 in version 2.9.
Please see http://jinja.pocoo.org/docs/2.9/changelog/#version-2-9-6
There are two ways to avoid this error. Both of these worked for me.
Downgrade jinja2
# using Anaconda
conda install jinja2=2.8.1
# using pip
pip install jinja2==2.8.1
Install dev version of PyInstaller
# install from github
# Don't run "pip install -U pyinstaller" because the dev version is not released yet
pip install git+https://github.com/pyinstaller/pyinstaller.git
# check if "PyInstaller (3.3.dev0+g483dfde)" is in the list
pip list