


Package will be missing, and error occur when we run executable.Īll related dlls have been copied to dist/demo/ folder,Įg. If we use pyinstaller -y -D demo.py don’t include -path="sdk/superdog", 'E:\\git\\python\\helloworld\\sdk\\superdog', Output 78 INFO: Extending PYTHONPATH with paths Generate build and dist folder, plus demo.spec ' # -add-binary './sdk/superdog/dog_windows_圆4.dll. # pyinstaller -y -D -add-binary './sdk/superdog/superdog.pyd. Pyinstaller commands pyinstaller -y -D -path = "sdk/superdog" demo.py append ( './sdk/superdog/' ) import superdog # superdog.pyd Windows and Mac OS X: do not provide a console window Open a console window for standard i/o (default) Windows and Mac OS X specific options -c, -console, -nowindowed Name an import not visible in the code of the script(s). hidden-import MODULENAME, -hiddenimport MODULENAME Multiple paths are allowed, separated by ‘:’, or use What to bundle, where to search -add-data Ī path to search for imports (like using PYTHONPATH). TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL (default: INFO).Ĭreate a one-folder bundle containing an executable (default) –log-level LEVEL Amount of detail in build-time console messages. –clean Clean PyInstaller cache and remove temporary files before building. –upx-dir UPX_DIR Path to UPX utility (default: search the execution path) y, –noconfirm Replace output directory (default: SPECPATH/dist/SPECNAME) Solution: pip3 install -upgrade setuptools Pyinstall -F demo.py error pyinstaller AttributeError: 'str' object has no attribute 'items' Guide install pip3 install pywin32 pyinstaller
