V
V
Vladimir2020-05-04 21:15:51
Python
Vladimir, 2020-05-04 21:15:51

How to build a Python script so that it works on another PC (without Python installed)?

Hello everyone!
Quite a newbie.
Interested in how you can build a Python script (with the import of libraries, like pywinauto, etc.)? So that it can be run without problems on another PC, without installing Python'a.
In parallel, I will ask a question about pywinauto. Some applications, when launched through pywinauto, ask for elevated privileges (the same regedit.exe). What to enter or how to bypass it?
I will be very grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Miit, 2020-05-04
@Morph1n

The following utilities can help with compiling the Python code into an exe file: pyinstaller, cx_freeze, py2exe, py2app, or else. Each
of the utilities has its pros and cons. For example, in pyinstaller, you can compile all the code into one file and it will weigh much more. In cx_freeze, you need to drag a folder of necessary libraries with you, in addition to the executable, but the folder itself, including the executable file, weighs several times less.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question