www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/02/07/12:46:53

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 617HkqLN3820494
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 617HkqLN3820494
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=uarQ3g5a
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1B5F48F4C18
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1770486410;
bh=afOpk44DIEdLrOlqOUuwftE0bJGTbklYRb78q+Uz+V4=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=uarQ3g5aY5vhtvR/Y/dTpTLhhF/AJSNAcNM3spwV8VXKDM2JG2Jfp3y+b1xyqDNHJ
nYTw+W9mG2GmGtKv5BRnoEQeCPaHs6jCNk/HPNC7k+m1dCC1rHjc3J1+nYAhBLNq1b
wH6MBVSBvPwn3Smcd/lK2LsYYl1a8yx8F+2MV3aU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0287848F4C2B
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0287848F4C2B
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770486388; cv=none;
b=Hg5xeDFztul9RFrptEGqFl0VptCupq4RP0Tmi32/ncxGFbJ7Lzd2M/sxgQ89r+aL1gs4i7+VGr9U8o1FC87b0+VIV2cxbkXTbfTiP+UrX/o8/v9mXyC3Nvvb38x+Mk0a0+t1hy7JQiJNxwOMuVMzp4IOvEMGbTjgEiovlpRoRcM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1770486388; c=relaxed/simple;
bh=sutgt7XjCvT5Xn+C0PhFp2fm0h6z0uO4280MRWjP16Y=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;
b=EGkFXyYVZSU6tAhq91z0qFHTdm5bw8C415+vzgefgerpSRruLi/UmV2okTntvJwfW40/3y+V0wUeFETCdk+pFRL7P4PEwpGaz45zjnfmp66tm8ff3onUD8Lfnsy1zReQoOhkHSvQdNGQ+Qn0V47sOLfwEunBmVSheqoKYrZle2c=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <2b02db72-d232-4d5f-97f5-c475618d29b9@seznam.cz>
Date: Sat, 7 Feb 2026 18:44:36 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: cygwin AT cygwin DOT com
Subject: python3.12 ensurepip fails
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Libor Ukropec via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Libor Ukropec <ace AT seznam DOT cz>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello,

I've installed (and then reinstalled) Python312 (3.12.12-1), venv, pip, setuptools, wheel 
all for python312.

Still when I execute `python3.12 -m ensurepip` I have this error:

```bash
$ python3.12 -m ensurepip
Traceback (most recent call last):
   File "<frozen runpy>", line 198, in _run_module_as_main
   File "<frozen runpy>", line 88, in _run_code
   File "/usr/lib/python3.12/ensurepip/__main__.py", line 5, in <module>
     sys.exit(ensurepip._main())
              ^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/ensurepip/__init__.py", line 284, in _main
     return _bootstrap(
            ^^^^^^^^^^^
   File "/usr/lib/python3.12/ensurepip/__init__.py", line 176, in _bootstrap
     whl = wheel_path.read_bytes()
           ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/pathlib.py", line 1019, in read_bytes
     with self.open(mode='rb') as f:
          ^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/pathlib.py", line 1013, in open
     return io.open(self, mode, buffering, encoding, errors, newline)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 
'/usr/lib/python3.12/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl'
```

For Python 3.9 it works as expected:

```bash
$ python3.9 -m ensurepip
Looking in links: /tmp/tmpwwz1fv3i
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (80.9.0)
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (22.3.1)
```

I'm not asking for workaround(s), I'm asking if it is an error in cygwin or my setup. I 
hit this error during troubleshooting other error.

Regards,
Libor

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019