compile_python_to_an_executable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compile_python_to_an_executable [2022/08/16 08:36] 192.168.1.49compile_python_to_an_executable [2022/08/17 04:35] (current) 192.168.1.21
Line 7: Line 7:
 You can use PyInstaller to package Python programs as standalone executables. It works on Windows, Linux, and Mac. You can use PyInstaller to package Python programs as standalone executables. It works on Windows, Linux, and Mac.
  
-PyInstaller Quickstart+PyInstaller Quickstart\\
 Install PyInstaller from PyPI: Install PyInstaller from PyPI:
  
-pip install pyinstaller+pip install pyinstaller\\
 Go to your program’s directory and run: Go to your program’s directory and run:
  
-pyinstaller yourprogram.py+pyinstaller yourprogram.py\\
 This will generate the bundle in a subdirectory called dist. This will generate the bundle in a subdirectory called dist.
  
-pyinstaller -F yourprogram.py+pyinstaller -F yourprogram.py\\
 Adding -F (or --onefile) parameter will pack everything into single "exe". Adding -F (or --onefile) parameter will pack everything into single "exe".
  
-pyinstaller -F --paths=<your_path>\Lib\site-packages  yourprogram.py+pyinstaller -F --paths=<your_path>\Lib\site-packages  yourprogram.py\\
 running into "ImportError" you might consider side-packages. running into "ImportError" you might consider side-packages.
  
- pip install pynput==1.6.8+ pip install pynput==1.6.8\\
 still runing in Import-Erorr - try to downgrade pyinstaller - see Getting error when using pynput with pyinstaller still runing in Import-Erorr - try to downgrade pyinstaller - see Getting error when using pynput with pyinstaller
  
 For a more detailed walkthrough, see the manual. For a more detailed walkthrough, see the manual.
compile_python_to_an_executable.1660653396.txt.gz · Last modified: 2022/08/16 08:36 by 192.168.1.49