Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <mailman.34.1716157568.2909.python-list@python.org>
Deutsch   English   Français   Italiano  
<mailman.34.1716157568.2909.python-list@python.org>

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

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Roel Schroeven <roel@roelschroeven.net>
Newsgroups: comp.lang.python
Subject: Re: Terminal Emulator (Posting On Python-List Prohibited)
Date: Mon, 20 May 2024 00:26:03 +0200
Lines: 47
Message-ID: <mailman.34.1716157568.2909.python-list@python.org>
References: <20240518151913.w5qqsw67gndy57ry@hjp.at>
 <0A01893C-85EC-4B50-BCDB-BCA5133C6536@barrys-emacs.org>
 <CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
 <ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 9eIpMmxDSqu+zXHXMdPCDwhpVNPSCeuIfOv66MMtz3aw==
Cancel-Lock: sha1:6KR0As4Gbpw+P3Itq/dDcutyHqI= sha256:fmJu9IG59WHSElctkZ+h3VD9kAGkmsYrjqoHtXjfWUg=
Return-Path: <roel@roelschroeven.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=roelschroeven.net header.i=@roelschroeven.net
 header.b=KjSSii8o; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'error:':
 0.05; 'pep': 0.07; 'telling': 0.07; 'debian': 0.09; 'fedora':
 0.09; 'page:': 0.09; 'pip.': 0.09; 'url-ip:151.101.0.223/32':
 0.09; 'url-ip:151.101.128.223/32': 0.09; 'url-
 ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32': 0.09;
 'subject:Python': 0.12; '>': 0.14; '--user': 0.16; '668': 0.16;
 'easiest': 0.16; 'installed.': 0.16; 'montanaro': 0.16; 'os,':
 0.16; 'python3': 0.16; 'received:10.202': 0.16;
 'received:10.202.2': 0.16; 'received:64.147': 0.16;
 'received:64.147.123': 0.16; 'received:internal': 0.16;
 'received:messagingengine.com': 0.16; 'root.': 0.16; 'schreef':
 0.16; 'sudo': 0.16; 'url:latest': 0.16; 'url:peps': 0.16;
 'python': 0.16; 'installing': 0.19; 'to:addr:python-list': 0.20;
 'install': 0.23; 'run': 0.23; 'tried': 0.26; 'output': 0.28;
 'environment': 0.29; 'header:User-Agent:1': 0.30; 'packages':
 0.31; 'python-list': 0.32; 'mark': 0.32; 'but': 0.32; 'same':
 0.34; 'package': 0.34; 'header:In-Reply-To:1': 0.34; 'trying':
 0.35; '"if': 0.35; 'url-ip:104.17/16': 0.35; 'work,': 0.36;
 'using': 0.37; 'could': 0.38; 'read': 0.38; 'this,': 0.39; 'use':
 0.39; 'block': 0.39; 'try': 0.40; 'reference': 0.60; 'url-
 ip:151.101.0/24': 0.62; 'url-ip:151.101.128/24': 0.62; 'url-
 ip:151.101.192/24': 0.62; 'url-ip:151.101.64/24': 0.62; 'your':
 0.64; 'wish': 0.66; 'received:64': 0.67; 'exactly': 0.68; 'skip:/
 30': 0.69; 'contact': 0.70; 'you.': 0.71; 'note:': 0.71; 'risk':
 0.71; 'virtual': 0.71; 'subject:List': 0.71; 'manage': 0.73;
 'easy': 0.74; 'breaking': 0.78; 'install.': 0.84; 'provider.':
 0.84; 'subject:Posting': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 roelschroeven.net; h=cc:content-type:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1716157564; x=
 1716243964; bh=b5TAIq1zRzOcr2PgF1rxdP0vJqSlQbxI85VVohAbcm8=; b=K
 jSSii8oW4gH7pNIOcYenujZ8eomLJYH+dEpZkT9PUL+aUcuW0qHqGFAf/sR4GIwH
 iyn9at+aYA5h34uFkqybznyNO8aJYUI/a5QGZgkyW1z99g77VckaapN42JnCcza8
 ZSazcv+/9B0WLnPUhb/77wDsPnBi8rGTrsQQSIgYeffph730chNF3/lKryNbGp7G
 fpei4iARXyT5bfEd4lDfUH7VgaO92r1EPi6vI3XNmWM0hfyLRMxt4Ra1UAMUmrzY
 BC6wHdWVuWEhpTW9qgIp/NTV39PiM3DUy04l/AA+Dua8RvPuYtrogiZenWb010pJ
 1DC+/m5lV9grMfZiXI+lw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1716157564; x=1716243964; bh=b5TAIq1zRzOcr2PgF1rxdP0vJqSl
 QbxI85VVohAbcm8=; b=Fc2qptAJCTDiMai/ac67y4Fj8KiOfNOWtVQMfKgc2aOn
 h2CDAZbOiolIbOEpXW1QEpHDsSShB0Ygf16FGZ1D5nogrHgN1l93tP/raHbLI2fY
 pTyQum0kHyNIbGoVrZdEh1DG6sG/H/+dmRw8aX/0dWI5iDE/0jOSX1emeOqhe890
 gPUBS2cXVDtQ455uYI7ISdHyUCrqtd19WTTkDHABTYe9GIxRLVFDAgDzBnIwt8wi
 uO1fP4B9vAn8r0h0KS6XZ0QU2dG4aRzelO/4wHCuwhq0zgpU1JFLsFC6xCGdjmI6
 tHo0eAH5JGiEVC8xO0TBr+20UnbAbe82OygNflC9Sw==
X-ME-Sender: <xms:e3xKZkSbfFLGyLqzo_fjjLQyfinIWkHcZSEQa-Jv9XLgwBUyPrlkqQ>
 <xme:e3xKZhxQM3WTZNjB5-wdMc2Ut0ox-J3_s934xJlkiu66deSxQy1w6C-bTo8vg2ldW
 5L7udilSGlK>
X-ME-Received: <xmr:e3xKZh2cAhrzWjWxshA_QrIdi7bGBUvCLlqPQ9Xd7DSsYAiWBEpZkIWLQEBkBe7lnouy69ubne8SHJU0WJA6c-ofRbaSCAg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehledgtdelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtre
 ertddvjeenucfhrhhomheptfhovghlucfutghhrhhovghvvghnuceorhhovghlsehrohgv
 lhhstghhrhhovghvvghnrdhnvghtqeenucggtffrrghtthgvrhhnpeeuhfdvgeefffegke
 eileegteetgedthefgleefveduveefgfeiteeukeeltdegvdenucffohhmrghinhepphih
 thhhohhnrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomheprhhovghlsehrohgvlhhstghhrhhovghvvghnrdhnvght
X-ME-Proxy: <xmx:fHxKZoDy_cCLYfUBaA3haDd8B-w-xHLPHT3dVheanfbMVW16KOSClQ>
 <xmx:fHxKZtgEQx6LW4UZ5Q8NuAhWE6OnSkKVtkqyv-teG_acRstrDjHuqQ>
 <xmx:fHxKZkq86WDj3U3XBuBsUlLKgJWVnfnE-vcjJQD4ooPA8Vmud5sZoQ>
 <xmx:fHxKZgg5hXXpv4vw9xdbmEVyPOHp8PqNSnjpG1kdZ53naVbNnQoS2g>
 <xmx:fHxKZtbNMEKsNuviMhfYZ5V9SJYRrF0bCub8OCBR04FUoaI0-ey6g-Qe>
Feedback-ID: i8e5b41ae:Fastmail
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
X-Mailman-Original-References: <20240518151913.w5qqsw67gndy57ry@hjp.at>
 <0A01893C-85EC-4B50-BCDB-BCA5133C6536@barrys-emacs.org>
 <CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
Bytes: 8727

Skip Montanaro via Python-list schreef op 20/05/2024 om 0:08:
> Modern debian (ubuntu) and fedora block users installing using pip.
> >
>
> Even if you're telling it to install in ~/.local? I could see not allowing
> to run it as root.

I assumed pip install --user would work, but no. I tried it (on Debian 
12 (bookworm)):

> $ pip install --user docopt
> error: externally-managed-environment
>
> × This environment is externally managed
> ╰─> To install Python packages system-wide, try apt install
>     python3-xyz, where xyz is the package you are trying to
>     install.
>
>     If you wish to install a non-Debian-packaged Python package,
>     create a virtual environment using python3 -m venv path/to/venv.
>     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
>     sure you have python3-full installed.
>
>     If you wish to install a non-Debian packaged Python application,
>     it may be easiest to use pipx install xyz, which will manage a
>     virtual environment for you. Make sure you have pipx installed.
>
>     See /usr/share/doc/python3.11/README.venv for more information.
>
> note: If you believe this is a mistake, please contact your Python 
> installation or OS distribution provider. You can override this, at 
> the risk of breaking your Python installation or OS, by passing 
> --break-system-packages.
> hint: See PEP 668 for the detailed specification.

Exactly the same output for sudo pip install.

For easy reference here's a link to that PEP 668: 
https://peps.python.org/pep-0668/
Which links to the "Externally Managed Environments" on the PyPA specs 
page: 
https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments

-- 
"If you don't read the newspaper, you're uninformed. If you read the newspaper,
you're mis-informed."
         -― Onbekend (dikwijls toegeschreven aan Mark Twain, waarschijnlijk onterecht)