G
G
gangandmitrii2016-03-10 10:51:02
Python
gangandmitrii, 2016-03-10 10:51:02

Python portability?

Good afternoon,
I started programming in Python 2.7, which has portability as one of the main advantages.
In practice, faced with the need to distribute programs, you face a bunch of problems.
Please advise the most efficient way to distribute programs written in Python 2.7 (with all modules) on Linux/Windows machines as easily as possible for the end user. That is, so that the maximum that is required from the user is to install the Python interpreter.
Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
s0ci0pat, 2016-03-10
@s0ci0pat

portability is declared as one of the main advantages

you were deceived
oh dreams dreams...

E
el777, 2016-03-10
@el777

There are a bunch of different tools to help you solve this problem. Unfortunately, not everyone is perfect. A simple application is assembled normally, as a more complex thing - so you have to sweat.
Article how to assemble Python 3 + PyQt5 - https://habrahabr.ru/post/264233/
It turned out to be a normal cross-platform application, it was written on a poppy, it works fine on Windows. It's very simple for the user - you run 1 file, it unpacks itself into a temporary folder and works. You can make an installer so that it is installed on the system and runs like a regular program. But it wasn't necessary.

S
southsoutheast, 2016-03-10
@southsoutheast

for windows you can use cx-freeze , for example.
the output will be a ready-made exe-shnik.

R
redakoc, 2016-03-10
@redakoc

Portability - yes.
But no one promised at the same time full automation of portability.
You can see how get-pip.py does it, for example.
Or the like.
At the first start, it pumps out everything that is needed.
And initially, the most portable system in terms of architecture is writing in Go.

E
Emptyform, 2016-03-10
@Emptyform

By the way, if you don’t care what to write on, then you can look at the free FreePascal (Lazarus), or at the paid Delphi XE5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question