O
O
onevetka2018-11-12 00:38:03
Python
onevetka, 2018-11-12 00:38:03

What is the best way to run python3 code on Windows?

Wrote an application in python3 + tkinter. Made a launch through bat, created a shortcut for it. The application opens a command prompt. How to remove it? Or how else can you run python scripts so that it is Win10 style?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andy_U, 2018-11-12
@onevetka

Use pyw instead of py to run. These commands are from the Python Launcher, which comes with Python by default. Well, or just pythonw.

D
Dmitry, 2018-11-12
@Trif

Or you can use pyinstaller to build an EXE with the "noconsole" parameter:
pyinstaller --onefile --noconsole my_program.py
Then you can run it under Windows and on any computer, even without Python installed. I can tell you more about the process.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question