Answer the question
In order to leave comments, you need to log in
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
portability is declared as one of the main advantages
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.
for windows you can use cx-freeze , for example.
the output will be a ready-made exe-shnik.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question