G
G
goldm2021-11-02 12:20:52
linux
goldm, 2021-11-02 12:20:52

What is the best way to compile a Python script to successfully open it on other Linux computers?

Good afternoon everyone!
I am a beginner in this business, but I would like to know how it is possible to run a script written in Python3.9 and having dependencies with various libraries on another computer (OS Linux and support only Python3.5)? It is also worth noting that the snag is that the information security service of the company has set a ban on updating the language in the OS and installing third-party .exes (and their analogues).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2021-11-02
@goldm

the information security service of the company has banned updating the language in the OS and installing third-party .exe files (and their analogues).

Under such restrictions, no way.
If they already have docker installed, then you can dockerize the script.

V
ValdikSS, 2021-11-03
@ValdikSS

1. Compile python 3.9 statically or with old glibc.
2. Package your script with this python and pyinstaller/cx_freeze

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question