https://stackoverflow.com/questions/5458048/how-can-i-make-a-python-script-standalone-executable-to-run-without-any-dependen
PyInstaller Quickstart
Install PyInstaller from PyPI:
pip install pyinstaller
Go to your program’s directory and run:
pyinstaller yourprogram.py
This will generate the bundle in a subdirectory called dist
.
py -3.10-64 -m PyInstaller -F yourprogram.py
Adding -F (or --onefile) parameter will pack everything into single "exe".
py -3.10-64 -m PyInstaller -F --paths=<your_path>\Lib\site-packages yourprogram.py
running into "ImportError" you might consider side-packages.
pip install pynput==1.6.8
py -3.10-64 -m PyInstaller --onefile
yourprogram
.py
No hay comentarios:
Publicar un comentario