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
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 688 Apr-06-2025, 07:56 PM
Last Post: Edward_
  Python 3.13(Windows) does not have the latest module OS phillip_from_oz 1 819 Dec-13-2024, 04:35 AM
Last Post: deanhystad
  Help on tkinter module upendra 8 1,900 Nov-10-2024, 03:14 PM
Last Post: menator01
  Combine console script + GUI (tkinter) dejot 2 1,548 Feb-27-2024, 04:38 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 1,033 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 7,994 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python script running under windows over nssm.exe JaroslavZ 0 1,653 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Python Script to convert Json to CSV file chvsnarayana 8 4,691 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  [SOLVED] Tkinter module not found Milan 7 50,178 Aug-05-2022, 09:45 PM
Last Post: woooee
  How to compile a Python script for a Windows / Linux executable? netanelst 2 2,098 May-24-2022, 07:02 AM
Last Post: netanelst

Forum Jump:

User Panel Messages

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