- Create a hello world program, like in
__main__.py
- Run
pyinstaller --clean --debug all --noupx --onedir --noconfirm src/__main__.py --name test
on Windows - Create a symlink to the generated binary using cmd.exe and executing
mklink C:\path-to\test.exe C:\path-to\dist\test\test.exe
- Run the binary via the symlink by executing
.\text.exe
, which results in the following error.
Error loading Python DLL 'C:\path-to\_internal\python311.dll'.
LoadLibrary: The specified module could not be found.