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 The first step is to install PyInstaller from PyPI. 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Ģ. $ wine msiexec /i python-2.7.9.amd64.msi /qb Install wine and Python $ sudo apt-get install wine To turn the Python code into a binary executable, you need to run the following command: pyinstaller pysearch.py. 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).
0 Comments
Leave a Reply. |