I am editing the question because you did not understand the problem. And the problem still exists.
How do I install into a Docker container via pip3, modules that are not installed on the system. When I do that it says it is a managed environment, and does not proceed, BUT there is no debian package that installs that module. So how do I get the modules on there?
###############################################################
I will start off as I dabble in Python, but Python has all the things I need. I deploy my scripts in containers and run them from there.
So recently in a Dockerfile, based on debian:bookworm I get an error while installing modules using pip. All the articles say I have to install the modules via apt. Fine but some of the modules I need do not have a package. So I am screwed. They say I should use a venv, but I do not know how or what that is about and how it applies to a container.
My container is using the root user.
So how do I use venv inside a container so that entrypoint can use it?
Thanx