Python Forum
Is there any way to convert a python script (with Tkinter module), to a .exe (Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there any way to convert a python script (with Tkinter module), to a .exe (Windows
#1
Is there any way to convert a python script to a standalone executable for Windows, via a Linux distro like Ubuntu?

I've heard about the wine/pyinstaller, but i think that pyinstaller doesn't support gui application. When i use Windows to convert the python script to .exe i use cx_Freeze and works perfectly, but i also copy to the folder some .dll files, what am i supposed to do on Linux to?
Reply
#2
(May-12-2019, 10:48 AM)moste Wrote: I've heard about the wine/pyinstaller, but i think that pyinstaller doesn't support gui application.
This is not true,Pyinstaller work fine with GUI application.
(May-12-2019, 10:48 AM)moste Wrote: what am i supposed to do on Linux to?
You use pyinstaller on Windows and Linux,also same code then make executable with building on each platform.
Quote:PyInstaller is tested against Windows, Mac OS X, and GNU/Linux.
However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc.
Reply
#3
In my case pyinstaller doesn't works (maybe because my programm contains both gui and console).

That's my question if there is any way to create an app for Windows while using a Linux machine. Not necessarily with pyinstaller or cx_Freeze.
Reply
#4
(May-12-2019, 11:06 AM)moste Wrote: In my case pyinstaller doesn't works (maybe because my programm contains both gui and console).
There should be a way to make that work.
(May-12-2019, 11:06 AM)moste Wrote: That's my question if there is any way to create an app for Windows while using a Linux machine. Not necessarily with pyinstaller or cx_Freeze.
Python is a cross platform language,so yes.
Can make wheel and also share it global with PyPi.
Or just test that .py work on each Platform.
Now talking about that OS has Python installed.

Freezing code the PyInstaller,cx_Freeze and pynsist.
There is Using Wine and Pyinstaller,i would not do that,when i have testes code normal or executable for more platforms i have used VirtualBox.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Combine console script + GUI (tkinter) dejot 2 407 Feb-27-2024, 04:38 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 360 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,165 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python script running under windows over nssm.exe JaroslavZ 0 700 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Python Script to convert Json to CSV file chvsnarayana 8 2,487 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  [SOLVED] Tkinter module not found Milan 7 23,342 Aug-05-2022, 09:45 PM
Last Post: woooee
  How to compile a Python script for a Windows / Linux executable? netanelst 2 1,313 May-24-2022, 07:02 AM
Last Post: netanelst
  Setup Portable Python on Windows for script starts with double clicks? pstein 0 1,804 Feb-18-2022, 01:29 PM
Last Post: pstein
Question convert autohotkey script to python / macro - press key when pixel get colour willson94d 1 3,627 Jan-01-2022, 08:13 PM
Last Post: Yoriz
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,632 Nov-25-2021, 06:52 AM
Last Post: stephanh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020