You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone succeeded using PyInstaller?
Since I want to call Python from Rust and provide a complete Python environment to user without additional installation,
something like PyInstaller is necessary.
As I understand, the problem is that by dynamically embedding Python with PyO3 requires a Python exe file (python.exe)
but the app built with PyInstaller only provides python310.dll and a custom bootloader exe file.
My setup/requirements are below:
Windows 10
Python 3.7+ (tested locally with 3.10)
PyInstaller with one-folder, noarchive option, that can be reproduced by pyinstaller -d noarchive someapp.py
Dynamically shared library (the number of Python modules and file size are quite large)
Rust will call short/long running Python functions (Rust acting like a controller, and Python like a model)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has anyone succeeded using PyInstaller?
Since I want to call Python from Rust and provide a complete Python environment to user without additional installation,
something like PyInstaller is necessary.
As I understand, the problem is that by dynamically embedding Python with PyO3 requires a Python exe file (python.exe)
but the app built with PyInstaller only provides python310.dll and a custom bootloader exe file.
My setup/requirements are below:
pyinstaller -d noarchive someapp.py
Beta Was this translation helpful? Give feedback.
All reactions