Please try this:
pyinstaller --add-binary "libs/mylib.dll;." --onefile myscript.py
If you want to build for Windows 7, you need to use Python 3.8 since that was the last Python version to support it.
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pyinstaller/12b8c21a-0a1d-4f3d-a747-4e2eb931d6a9n%40googlegroups.com.
Try to add these files to the spec file like;
a = Analysis(
['myscript.py'],
binaries=[('libs/mylib.dll', '.')],
...
)
...
)
To view this discussion visit https://groups.google.com/d/msgid/pyinstaller/ace935cf-6581-432e-a75f-8a9965f2dce4n%40googlegroups.com.
This is the solution by AI.one has to try.othertwise we won't know