Skip to content

Instantly share code, notes, and snippets.

@optimistanoop
Last active June 24, 2019 07:27
Show Gist options
  • Save optimistanoop/2a7af998b161f9073f1f36f0e0a12989 to your computer and use it in GitHub Desktop.
Save optimistanoop/2a7af998b161f9073f1f36f0e0a12989 to your computer and use it in GitHub Desktop.
generate exe from pyinstaller

To generate .exe file

pyinstaller -F --add-data <path of open cv file>;. <main file of codebase>

example

pyinstaller -F --add-data C:\Users\Anoop\AppData\Local\Programs\Python\Python35\Lib\site-packages\cv2\opencv_ffmpeg410_64.dll;. roi_version.py

other commands

pyinstaller -F getface.py

pyinstaller -F genderage.py

pyinstaller -F --add-data C:\Users\Anoop\AppData\Local\Programs\Python\Python35\Lib\site-packages\mxnet\libmxnet.dll;. genderage.py

pyinstaller -F --add-data C:\Users\Anoop\Documents\wesensewindowsappnew\mtcnn-model;C:\Users\Anoop\Documents\pyinstaller-exe-wesense\genderage\genderage\mxnet\libmxnet.dll;. genderage.py

C:\Users\Anoop\AppData\Local\Programs\Python\Python35\Lib\site-packages\cv2\opencv_ffmpeg410_64.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment