Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #143: had to use hammer to free stuck disk drive heads.


comp / comp.lang.python / Best Practice Virtual Environment

SubjectAuthor
o Best Practice Virtual EnvironmentUlrich Goebel

1
Subject: Best Practice Virtual Environment
From: Ulrich Goebel
Newsgroups: comp.lang.python
Date: Sat, 5 Oct 2024 20:27 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ml@fam-goebel.de (Ulrich Goebel)
Newsgroups: comp.lang.python
Subject: Best Practice Virtual Environment
Date: Sat, 5 Oct 2024 22:27:33 +0200
Lines: 15
Message-ID: <mailman.37.1728161742.3018.python-list@python.org>
References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de YB2D89tz8ylBeYyCZmvZcQZnoLlqfFmgPUd8TXFbYvDA==
Cancel-Lock: sha1:sHRxkXRCdha4hArpJgghxCfEsa4= sha256:lszcfS9/YWs8rm0Zf7YZM8fr2Dhn2UKaWam4fUbcRbU=
Return-Path: <ml@fam-goebel.de>
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.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pip': 0.04; 'that?': 0.07;
'debian': 0.09; 'environments': 0.09; 'linux': 0.09;
'received:78': 0.09; 'possible,': 0.15; 'deploy': 0.16; 'hint':
0.16; 'python3': 0.16; 'received:136.243': 0.16; 'received:78.46':
0.16; 'received:your-server.de': 0.16; 'server,': 0.16; 'usable':
0.16; 'python': 0.16; 'to:addr:python-list': 0.20; 'install':
0.23; 'received:de': 0.23; 'packages': 0.31; "doesn't": 0.32;
'received:136': 0.32; 'right,': 0.32; 'but': 0.32; 'script': 0.33;
'someone': 0.34; 'couple': 0.37; 'quite': 0.39; 'single': 0.39;
'use': 0.39; 'best': 0.61; 'come': 0.62; 'ever': 0.63; 'required':
0.65; 'virtual': 0.71; 'subject:Virtual': 0.84
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
X-Authenticated-Sender: ml@fam-goebel.de
X-Virus-Scanned: Clear (ClamAV 0.103.10/27418/Sat Oct 5 10:49:53 2024)
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: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
View all headers

Hi,

I learned to use virtual environments where ever possible, and I learned to pip install the required packages there.

That works quite nice at home. Now I come to deploy a Python script on a debian linux server, making it usable for a couple of users there.

Debian (or even Python3 itself) doesn't allow to pip install required packages system wide, so I have to use virtual environments even there. But is it right, that I have to do that for every single user?

Can someone give me a hint to find an howto for that?

Best regards
Ulrich

--
Ulrich Goebel <ml@fam-goebel.de>

1

rocksolid light 0.9.8
clearnet tor