I’m running a small server and am using python for multiple purposes, among others for a CGI script running with apache2 (I’m working on replacing CGI with flask, but that’s not the topic here). I installed modules that were not available as Debian packages with pip. After updating Debian to Bookworm this is no longer supported/recommended and now all these packages are missing.
As I’m trying to run everything with least privileges and as separated from each other as possible there are multiple users which run python programs that need the same packages. The standard way of using a venv per user seems quite complicated as all these users should have access to all modules I install.
Is there a better way than installing the same module multiple times and having to update the same module manually multiple times? E.g. is it possible to set up a global virtual environment (administered by root) and use this with multiple users?