The Windows executable file is located in dist/. $ wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -onefile helloworld.py Package Python scripts (e.g., helloworld.py) with pyinstaller. $ wine python.exe Scripts/pip.exe install pyinstaller To turn the Python code into a binary executable, you need to run the following command: pyinstaller pysearch.py. Install PyInstaller on wine $ cd ~/.wine/drive_c/Python27 If you need to compile a 32bit executable, you need to install wine32: sudo dpkg -add-architecture i386 & sudo apt-get update & sudo apt-get install wine32Ģ. pyinstaller -onefile testProg.py But I am ge. PyInstaller reads and analyzes our code and then discovers the modules that our program requires in order to execute. We don’t need to install different packages or modules for different applications. $ wine msiexec /i python-2.7.9.amd64.msi /qb In my home/pi folder, i have a python file (testProg.py) I tried to create the executable using pyinstaller. PyInstaller is a package in Python which bundles all the dependencies of Python applications in a single package. Install wine and Python $ sudo apt-get install wine However, due the instability of the feature, it has been removed since version 1.5.įortunately, is still possible to package a Windows executable using PyInstaller under Wine. Initially Pyinstaller had a beta feature that allows the cross-compilation of a windows executable under Linux. Pyinstaller is a program that packages Python programs into stand-alone executables, under the most used OSs ( Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX). PyInstaller reads and analyzes our code and then discovers the modules that our program requires in order to execute.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |