Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Julian Gilbey Newsgroups: linux.debian.maint.python Subject: Re: #!/usr/bin/python3 vs virtualenv Date: Sun, 05 Mar 2023 11:50:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Mar 5 10:47:31 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/20873 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ZARzLBdSdhOv56pG@d-and-j.net Approved: robomod@news.nic.it Lines: 19 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Jeremy Stanley , debian-python@lists.debian.org X-Original-Date: Sun, 5 Mar 2023 10:47:08 +0000 X-Original-Message-ID: X-Original-References: <1c48b573-b3cd-0eb8-4493-752dd9d0c3fa@inria.fr> <9193D789-A0A4-4883-B2AC-3CBFF1ED3444@ubuntu.com> <20230303191648.zhsf7b5bukvwcgmh@yuggoth.org> <20230303204314.f663ltpcjhg3iyzt@yuggoth.org> Xref: csiph.com linux.debian.maint.python:14969 On Fri, Mar 03, 2023 at 04:22:11PM -0500, Jorge Moraleda wrote: > Jeremy, Thank you for your quick reply! > > I did not know about `sudo pip install --break-system-packages foo` or  `sudo rm > /usr/lib/python3.11/EXTERNALLY-MANAGED` (Frankly I only knew about this issue > what I have read on this discussion). This is very helpful and it really changes > my outlook on this topic. The --break-system-packages option is noted in /usr/share/doc/python3.11/README.venv, and this file is mentioned in the NEWS file for python3.11. The /usr/lib/python3.11/EXTERNALLY-MANAGED file is not mentioned there; I personally think that having to type --break-system-packages every time one installs a package via pip globally or on a per-user basis is safer, as it reminds you that you run risks doing so. Best wishes, Julian