Deutsch   English   Français   Italiano  
<mailman.0.1728190907.3207.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Cameron Simpson <cs@cskk.id.au>
Newsgroups: comp.lang.python
Subject: Re: Best Practice Virtual Environment
Date: Sun, 6 Oct 2024 08:59:56 +1100
Lines: 20
Message-ID: <mailman.0.1728190907.3207.python-list@python.org>
References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
 <ZwG23Ie6Sf8vGDKm@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Trace: news.uni-berlin.de mCrALFgbclCVh5kGtqGvdABLazRBKY1McvQsmE8KjM1g==
Cancel-Lock: sha1:/DHdqoU/xLGvwaDK5x0jsz/plQg= sha256:FDRUHU2U1zxpD3bJb4VFcjtiYGNLrfMaJ9LxyabmM8w=
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
 dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'thing.':
 0.07; 'cc:addr:python-list': 0.09; 'readable': 0.09; 'skip:# 30':
 0.09; 'cheers,': 0.11; 'cc:no real name:2**0': 0.14; 'cameron':
 0.16; 'from:addr:cs': 0.16; 'from:addr:cskk.id.au': 0.16;
 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net':
 0.16; 'python3': 0.16; 'received:13.237': 0.16;
 'received:13.237.201': 0.16; 'received:13.237.201.189': 0.16;
 'received:cskk.id.au': 0.16; 'received:id.au': 0.16;
 'received:mail.cskk.id.au': 0.16; 'simpson': 0.16; 'solved.':
 0.16; 'wrote:': 0.16; 'problem': 0.16; 'cc:addr:python.org': 0.20;
 'install': 0.23; 'cc:2**0': 0.25; 'header:User-Agent:1': 0.30;
 'modify': 0.31; "doesn't": 0.32; 'right,': 0.32; 'script': 0.33;
 'header:In-Reply-To:1': 0.34; 'received:au': 0.35; 'single': 0.39;
 'shared': 0.39; 'critical': 0.62; 'received:13': 0.64; 'with:':
 0.64; 'required': 0.65; 'received:userid': 0.66;
 'subject:Virtual': 0.84
Mail-Followup-To: Ulrich Goebel <ml@fam-goebel.de>, python-list@python.org
Content-Disposition: inline
In-Reply-To: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
User-Agent: Mutt/2.2.13 (2024-03-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: <ZwG23Ie6Sf8vGDKm@cskk.homeip.net>
X-Mailman-Original-References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
Bytes: 3540

On 05Oct2024 22:27, Ulrich Goebel <ml@fam-goebel.de> wrote:
>Debian (or even Python3 itself) doesn't allow to pip install required 
>packages system wide,

This is gnerally a good thing. You might modify a critical system-used 
package.

>But is it right, that I have to do that for every single user?

No. Just make a shared virtualenv, eg in /usr/local or /opt somewhere.
Have the script commence with:

     #!/path/to/the/shred/venv/bin/python

and make it readable and executable.

Problem solved.

Cheers,
Cameron Simpson <cs@cskk.id.au>