python -m venv ansible-galaxy-init ansible-galaxy-init\Scripts\Activate .\Scripts\python.exe -m pip install --upgrade pyinstaller jinja2 pyinstaller --add-data ".\src\templates:templates" --onefile .\src\script.py copy to anywhere you want: example: add the folder to environment: