Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14970
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jorge Moraleda <jorge.moraleda@gmail.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: #!/usr/bin/python3 vs virtualenv |
| Date | Sun, 05 Mar 2023 13:00:01 +0100 |
| Message-ID | <G5VbX-ahx0-7@gated-at.bofh.it> (permalink) |
| References | <G5fw5-9OsW-3@gated-at.bofh.it> <G5iDD-9Qef-1@gated-at.bofh.it> <G5j6F-9QDs-5@gated-at.bofh.it> <G5kcp-9ReX-3@gated-at.bofh.it> <G5kvM-9Rly-7@gated-at.bofh.it> <G5l8t-9RNG-5@gated-at.bofh.it> <G5U6d-agR6-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sun Mar 5 11:50:34 2023 |
| Old-Return-Path | <jorge.moraleda@gmail.com> |
| X-Amavis-Spam-Status | No, score=-4.999 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, MURPHY_SCAM1=0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| X-Gm-Message-State | AO0yUKUa2hRZdZkPZz1EyX9QeeBTmIfGwJjqtCNzWM3qXvCwseyPLTCV K5Xjavfnll/DySEkt5vbiAweOeRLO9Rnkrz55ISLp7pcVcG6lQ== |
| X-Google-SMTP-Source | AK7set8s12BgqQI4RcKDqoPWzdH3aYBheu7qGxDBbDxL2ZNDw/GM27C4x/YMOiX8q2ai6A7LrhXVdi73K+v6NtDMLAI= |
| X-Received | by 2002:a62:c1c3:0:b0:5d6:4f73:9ad with SMTP id i186-20020a62c1c3000000b005d64f7309admr3204749pfg.2.1678017015854; Sun, 05 Mar 2023 03:50:15 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="000000000000283d3005f625c824" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20874 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/CAGbhV70MU6Rx7MTRWmEQTwhO-6tgBiFy53qMN8Spe6NOkqm2Xg@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 85 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Jeremy Stanley <fungi@yuggoth.org>, debian-python@lists.debian.org |
| X-Original-Date | Sun, 5 Mar 2023 06:50:04 -0500 |
| X-Original-Message-ID | <CAGbhV70MU6Rx7MTRWmEQTwhO-6tgBiFy53qMN8Spe6NOkqm2Xg@mail.gmail.com> |
| X-Original-References | <1c48b573-b3cd-0eb8-4493-752dd9d0c3fa@inria.fr> <9193D789-A0A4-4883-B2AC-3CBFF1ED3444@ubuntu.com> <20230303191648.zhsf7b5bukvwcgmh@yuggoth.org> <CAGbhV701u4XtjAYxrGH8TrfQw_rFzRKy5vV+o==7uTy=Yr7JLA@mail.gmail.com> <20230303204314.f663ltpcjhg3iyzt@yuggoth.org> <CAGbhV73e7rhMEnEQqhdwJixL2-2p6h04oumrYmDi4Z8mXXfTsQ@mail.gmail.com> <ZARzLBdSdhOv56pG@d-and-j.net> |
| Xref | csiph.com linux.debian.maint.python:14970 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
FWIW, I am one of those power users that develop python applications and prefer the simplicity of a single environment. In my personal experience, installing using `sudo pip` (or user pip, which I don't do at all) is not a frequent operation for users that choose to manage a single environment. Personally, I use it only after searching in apt and confirming the package is not there. Having to type --break-system-packages every time when I have to do it is a good solution for me that I find completely reasonable. Thank you! On Sun, Mar 5, 2023 at 5:47 AM Julian Gilbey <julian@d-and-j.net> wrote: > 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 >
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
#!/usr/bin/python3 vs virtualenv Marc Glisse <marc.glisse@inria.fr> - 2023-03-03 16:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2023-03-03 19:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 20:20 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-03 21:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 21:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-03 22:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 22:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Julian Gilbey <julian@d-and-j.net> - 2023-03-05 11:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-05 13:00 +0100
Re: #!/usr/bin/python3 vs virtualenv Stefano Rivera <stefanor@debian.org> - 2023-03-09 23:40 +0100
Re: #!/usr/bin/python3 vs virtualenv Marc Glisse <marc.glisse@inria.fr> - 2023-03-05 14:20 +0100
Re: #!/usr/bin/python3 vs virtualenv Dmitry Shachnev <mitya57@debian.org> - 2023-03-03 21:50 +0100
csiph-web