Deutsch English Français Italiano |
<mailman.42.1716242260.2909.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Akkana Peck <akkana@shallowsky.com> Newsgroups: comp.lang.python Subject: pip and venvs on Debian (was: Terminal Emulator) Date: Mon, 20 May 2024 15:48:12 -0600 Lines: 22 Message-ID: <mailman.42.1716242260.2909.python-list@python.org> References: <fqN0O.38287$ZZU.19060@fx07.ams4> <TUI-20240515112645@ram.dialup.fu-berlin.de> <v23j1c$15nao$4@dont-email.me> <Pvs1O.8533$H1X8.1544@fx05.ams4> <20240518151913.w5qqsw67gndy57ry@hjp.at> <4VhVBk0sy7znVGB@mail.python.org> <dc837fb2-fee3-4d7c-81b1-fa70cacdc3bf@wichmann.us> <mailman.19.1716055464.2909.python-list@python.org> <hl7nhk-165.ln1@lazy.lzy> <a0b970e1-6c17-444d-a720-756fc9700a81@yahoo.co.uk> <ZkvFHHmFgsl1VKie@shallowsky.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de hsml0dp3Nhva0j3std+6OwfSzrc8uVkR8Wn8LIwEEC2g== Cancel-Lock: sha1:CWu4/VOL8AYCisHBPs36+3iDPd4= sha256:9R64hrLdRzV4OkIqLXbr0pY+UG+AZHUmwNbjCzlprCI= Return-Path: <akkana@shallowsky.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=shallowsky.com header.i=@shallowsky.com header.b=BYOUgSAo; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.073 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'pip': 0.04; 'debian': 0.09; 'writes:': 0.09; 'log': 0.12; '(without': 0.16; '--user': 0.16; 'gauld': 0.16; 'pip,': 0.16; 'predictable': 0.16; 'python3': 0.16; 'received:71': 0.16; 'subject:pip': 0.16; 'wrote:': 0.16; 'python': 0.16; 'to:addr:python-list': 0.20; "i've": 0.22; "what's": 0.22; 'install': 0.23; 'installed': 0.23; 'anything': 0.25; "isn't": 0.27; 'old': 0.27; 'mostly': 0.28; 'header:User- Agent:1': 0.30; 'packages': 0.31; 'default': 0.31; 'program': 0.31; "doesn't": 0.32; 'fine.': 0.32; 'python-list': 0.32; 'but': 0.32; "i'm": 0.33; 'use,': 0.33; 'header:In-Reply-To:1': 0.34; 'usual': 0.35; 'special': 0.37; 'using': 0.37; "it's": 0.37; 'way': 0.38; 'use': 0.39; 'master': 0.39; 'alan': 0.40; 'try': 0.40; 'should': 0.40; 'in,': 0.60; 'lack': 0.60; 'everything': 0.63; 'security': 0.64; 'updates': 0.64; 'down': 0.64; 'well': 0.65; 'years': 0.65; '"you': 0.69; 'them,': 0.70; 'easy': 0.74; 'biggest': 0.84; 'extra': 0.84; '(like': 0.84; 'activate': 0.91; 'me:': 0.91; 'duplicate': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shallowsky.com; s=default; t=1716241695; bh=t0DEh6lkx6IdLN83Ftj9XFzP28l4Cjq82IFUDHB6x2w=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BYOUgSAovsL18eOtSspVF9+/ElTugnA9zPBTOd9dYacbNp7ZVI33FN3ba8Ys4BSsp xIOUMh8pu5R4+jFe8csR6STXRel0PIAhmm51dALpTwyfCCKZwPb3lJkD1zPbywM1br 1aTMlCxOs3bT9HDKULkJEWaRvfeDTDT2uGzz0vidYvX0I3XRqhfxpUcI9CUSuPBFed 1cMsYsd7deSg8LN+adqfZu+RNQodJUpPNWJkYFFFDTi5cjn6j90zPFknL5IPHFTJ9o 3LGxdjtWqFYAciJ/f2SYyIgFiEDh7pu1rCNhD65QUY1ZzMDVPta+RaMlLtYxBnBQdc dp2sfc7BVfKzg== Mail-Followup-To: python-list@python.org Content-Disposition: inline In-Reply-To: <a0b970e1-6c17-444d-a720-756fc9700a81@yahoo.co.uk> User-Agent: Mutt/2.2.12 (2023-09-09) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <ZkvFHHmFgsl1VKie@shallowsky.com> X-Mailman-Original-References: <fqN0O.38287$ZZU.19060@fx07.ams4> <TUI-20240515112645@ram.dialup.fu-berlin.de> <v23j1c$15nao$4@dont-email.me> <Pvs1O.8533$H1X8.1544@fx05.ams4> <20240518151913.w5qqsw67gndy57ry@hjp.at> <4VhVBk0sy7znVGB@mail.python.org> <dc837fb2-fee3-4d7c-81b1-fa70cacdc3bf@wichmann.us> <mailman.19.1716055464.2909.python-list@python.org> <hl7nhk-165.ln1@lazy.lzy> <a0b970e1-6c17-444d-a720-756fc9700a81@yahoo.co.uk> Bytes: 6142 Alan Gauld via Python-list writes: > On 18/05/2024 19:12, Piergiorgio Sartor via Python-list wrote: > > >> So venvs make managing all that pretty convenient. Dunno why everybody's > >> so down on venvs... > > Not so much down on them, they are just one extra step that's > mostly not needed(in my use case) Years ago, I used to have trouble with pip install --user on Debian -- sometimes things would end up under .local, sometimes in other places that I've forgotten. So I reluctantly started using venvs. And you know, they work fine. I have one master venv that I created with python3 -m venv --system-site-packages ~/pythonenv/envname and I activate that automatically when I log in, so when I need to install anything that Debian doesn't package, I just pip install it (no --user or --break-system-packages needed) and it installs to that venv. Every so often I need to regenerate it (like when Debian updates the system Python version) but that's easy to do: I don't try to duplicate what's installed there, I just delete the old venv, create a new one and then pip install packages as needed. I have a few special venvs (without --system-site-packages) for specific purposes, but most of the time I'm just using my default venv and it's all pretty transparent and automatic. I know this isn't the usual pythonista model of "you should have a zillion different venvs, one for each program you use, and never use system Python packages", but it works well for me: my pip installed packages are all in a predictable place, and I get security updates for all the software Debian *does* package. That's my biggest beef with pip, the lack of an easy way to update everything at once, and it's the reason I prefer Debian packages when available. ...Akkana