Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #257: That would be because the software doesn't work.


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

SubjectAuthor
o Re: Best Practice Virtual EnvironmentThomas Passin

1
Subject: Re: Best Practice Virtual Environment
From: Thomas Passin
Newsgroups: comp.lang.python
Date: Sat, 5 Oct 2024 21:31 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Best Practice Virtual Environment
Date: Sat, 5 Oct 2024 17:31:34 -0400
Lines: 15
Message-ID: <mailman.1.1728190908.3207.python-list@python.org>
References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
<10ddef1d-d1e1-4614-8958-1f1c278c1ce1@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de c4xU032dyXsQnr0d97SDEQJLsS6kBFoNeeFh2WBYIDJw==
Cancel-Lock: sha1:OWoBCTiXQwtvOGgWF+QpAhZXBes= sha256:7OE/4b6LICTX6pGFSu2PQ2U2AfEkrYVZ7m9Y9zl3CHA=
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=LBqGQeXP;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pip': 0.04; 'that?': 0.07;
'debian': 0.09; 'environments': 0.09; 'linux': 0.09; 'possible,':
0.15; 'deploy': 0.16; 'hint': 0.16; 'like.': 0.16; 'python3':
0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'server,': 0.16; 'usable': 0.16;
'wrote:': 0.16; 'python': 0.16; 'uses': 0.19; 'pm,': 0.19;
'to:addr:python-list': 0.20; 'version': 0.23; 'install': 0.23;
'version.': 0.28; 'example,': 0.28; 'header:User-Agent:1': 0.30;
'packages': 0.31; "doesn't": 0.32; 'python-list': 0.32;
'received:10.0': 0.32; 'received:100.96': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'right,': 0.32; 'but':
0.32; 'there': 0.33; 'script': 0.33; 'someone': 0.34; 'header:In-
Reply-To:1': 0.34; 'couple': 0.37; 'way': 0.38; 'quite': 0.39;
'single': 0.39; 'use': 0.39; 'received:100': 0.39; 'come': 0.62;
'ever': 0.63; 'required': 0.65; 'header:Received:6': 0.67;
'received:64': 0.67; 'risk': 0.71; 'virtual': 0.71; 'breaking':
0.78; 'subject:Virtual': 0.84; 'replacing': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1728163895; a=rsa-sha256;
cv=none;
b=ZZr47yHtbWHRAdMcUGn/PbdoEbvwMUorA6wRCajIEzGQHI8y7+xphqivAIvYfd0kddXRJq
4V/J6cshDg5VERXQWOHXShquqeeAhyX0amXEIea6vBTW6gVmsi0cySn08KWw0oiZC4bK9K
1Lp2glKX+IcWWlLswxQclpdaFhi0W/p3Rv2FUBWsIl5r+Iu+U+6brcQh42yPzk30X2+roz
kVuaE1QbKlu1JqIVsDTbT8d+aTn9m0YsYwrQQ11P6ZzFA02AX4grdFtOV0PaaYoZaPyXzT
9igUHZaDYRqnnJYZ69/4YVQ8KgaEnlaeS68329BeRfBJQQBWZQedu1b6eOJFaQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1728163895;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=jkzJKeuvADIfHc1Qcw3hnVDB73osXCAyzkjr7Ng7aiw=;
b=EpYxSPOq1qsMtFZjoJQR/oStryITgeeyDVGZpJUpTW/1UVs7E2JdQk/YJ6hRZtXj/nCX9p
jBfo4vI/oXV1gx5+UGYyI0MHsaE98qL/YSiDWFmPQOGBLx854niBFK/P1oOqLnSLt/fDpB
xX3gBbOYYi7fUDAKqbCrWZCgZoc+wCpnFeXQuUJ/oLRh5A5Us3jIgwLoaU6N28G92JkbhL
OH/R7w7moDsJInTFx6xwr75JKepOswWe1j4N8YO41TzX58/LfVvJoZjBGA8bwtpTJIvN2p
W+UE1uhNw+IDIIUw8aDvy9pDYovwXA4Z5yCltcUIzrA73vw3fOhIXW8v5vCAoQ==
ARC-Authentication-Results: i=1; rspamd-5778c966d7-27hgr;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Eyes-Zesty: 044620b829b3a4d7_1728163896141_1628384172
X-MC-Loop-Signature: 1728163896141:3193797606
X-MC-Ingress-Time: 1728163896141
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1728163895;
bh=jkzJKeuvADIfHc1Qcw3hnVDB73osXCAyzkjr7Ng7aiw=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=LBqGQeXPYK0mUSTuGsnd6lmly0PZqUMwJD1euvVViALV0UggzA8/k7yprXzq3oEEq
QdBngn0hGGIp3hF/+Lr8J4sjEkMOylJb+Ch3MeXYiVHNP18FZWfyV4OhWA/oiwXZkJ
Hr1js18fg1wK23HHJyXji3W7xIhyX/cxzWtY2RW3ZdAJPjzUnuX15ZITzj+uhX3Al/
Y7ALK++bGl2YXdJ1tBKYHelLceM4gkh1C6l22MJwEikd5Wz2DeUviJhtR9ank6EJIW
pTvvwt+nGXoUL4VhS9ByeqvzApG3zBk22wQEtyqv5soVx1JcwJ8MgF9OcI0rXKrGyF
w8iZcsFan3dXQ==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
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: <10ddef1d-d1e1-4614-8958-1f1c278c1ce1@tompassin.net>
X-Mailman-Original-References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
View all headers

On 10/5/2024 4:27 PM, Ulrich Goebel via Python-list wrote:
> 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?

One alternative is to install a different version of Python without
replacing the system's version. For example, if the system uses Python
3.11, install Python 3.12. That way there is no risk of breaking system
operation, and you can install what you like where you like.

1

rocksolid light 0.9.8
clearnet tor