Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Nuno Silva Newsgroups: comp.os.linux.misc,comp.lang.python Subject: Re: Defeat Python "Virtual Environment" in Fedora ? Date: Thu, 12 Mar 2026 10:39:42 +0000 Organization: A noiseless patient Spider Lines: 42 Message-ID: <10ou55g$1sgpp$2@dont-email.me> References: <10olgca$2vj8v$1@dont-email.me> <10opbd6$aupd$1@dont-email.me> <2l368m-do5.ln1@lazy.lzy> <10osioo$3e4cl$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 12 Mar 2026 10:39:45 +0000 (UTC) Injection-Info: dont-email.me; posting-host="8505bc7404c10813c98987f187aafdb4"; logging-data="1983289"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iYB8nzXST4N+0A8P4StqF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:TUOt1vtbLMnqz1RjLbUd1GS+Yys= Xref: csiph.com comp.os.linux.misc:82880 comp.lang.python:197719 On 2026-03-11, Pancho wrote: > On 3/10/26 18:14, Piergiorgio Sartor wrote: >> On 10/03/2026 18.03, c186282 wrote: >> [...] >>>    Can't figure out how to zap the VENV in order >>>    to provide the examples you'd like  :-) >> >> There are the following possibilities here: >> 1) You didn't properly get what a venv is in Python >> 2) You're trolling. >> >> Assuming 1), the venv is nothing more that a >> search path change, for Python programs and >> modules. Where, instead of looking first into >> the system folders, first is searched in the >> venv "repository" area. >> Nothing more, nothing less. >> > > My understanding is different. My understanding is that a venv only > uses packages installed locally in the venv. It shouldn't default to > a global package if it is not found in the venv. I guess the other view is to allow package management to exist and work, and using venvs only for what can't be managed by the package manager... > (caveat: it may use default site installed packages if told to do so). ... but then I guess that's what stuff managed by the package manager ends up as? > This is very much what I would want. I would want my python app to > work independently of some eccentricity of the machine I develop on. I > suspect if I were still a developer I would go further and use > snaps,flatpak, or docker containers. At this point, why not also use static linking? -- Nuno Silva (not reading comp.lang.python)