Sure.  The other os have python libs they install at the system level too. 
 Run 'pip3 list --verbose' to see what's where.

I'm personally ok with things installing as root.  I just like not 
'running' as root whenever it can be avoided.

FWIW - I have run into the problems venv solve quite a lot.  Things needing 
certain versions of a library (or minimum versions thereof) and the os 
freezing to something lesser.  Any RHEL-like system or LTS debian is a good 
example.  They go for many year stability and freeze to old versions.  The 
venv thing is a good way to not be limited by the os vendor's choices.

On Sunday, March 8, 2026 at 12:45:33 PM UTC-7 Greg Troxel wrote:

> Vince Skahan <[email protected]> writes:
>
> > You generally can't avoid venvs on a modern python on a current os. 
> Nobody 
> > here did that. The python project forced that on everybody.
>
> That's not strictly true. pkgsrc has packages for a vast number of
> py-foo all installed in the system site-packages, and it works fine. I
> am actually running weewx that way, with the weewx code in
> /usr/pkg/lib/python3.13/site-packages/weewx and so on.
>
> In my case, the weewx progarm files are owned by root and live in the
> system. I am running it in a data directory (with config file and
> database) that is owned by a non-root user. Stepping back from weewx
> and python, this is totally normal, to use installed programs with your
> own data.
>
> <rant>
>
> I find that venvs are required because python culture says it is ok to
> have requirements as foo==x.y.z, rather than foo>=x.y. Thus, there is
> no way to have everything needed installed, and python packages with
> unreasonably specific dependencies (Home Assistant) have to be in a venv
> for isolation.
>
> The root cause of pinned deps, besides people thinking it is ok, is API
> instability within modules.
>
> </rant>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/ac08951d-bb5b-407e-8b72-874ff650aa61n%40googlegroups.com.

Reply via email to