M
M
Michael2020-10-09 10:54:49
linux
Michael, 2020-10-09 10:54:49

How to solve the problem with the lack of modules on the server?

People, hello.
I wanted to ask how someone solves the problem of lack of modules on the server. The default on RH is the 2.7 version of python with the standard set of modules.
Admins are busy, installing modules is a long process. What is the best practitioner in this matter?
Modules are needed for automation scripts and run manually or by cron.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Z
zohan1993, 2020-10-09
@ARMADIK

virtualenv + pip
create an isolated virtual environment
and install whatever you want

D
Dr. Bacon, 2020-10-09
@bacon

That's right - create a virtual environment and put everything you need into it so that there are no intersections with the system. Well, 2.7 is already legacy.

installing modules is a long process.
what?

R
rPman, 2020-10-09
@rPman

officially - pip install module_name, under the user they will be added to his home folder, under root - a
number of more modules are supplied regularly in OS turnips, look for packages in the name containing the module you need and py - prefix or suffix

S
Sanes, 2020-10-09
@Sanes

pip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question