python3.12 ensurepip fails

Marco Atzeri marco.atzeri@gmail.com
Tue Feb 10 23:35:16 GMT 2026


On 10/02/2026 22:57, Marco Atzeri wrote:
> On 08/02/2026 18:08, news703538--- via Cygwin wrote:
>> Am 2026-02-07 18:44:36, schrieb Libor Ukropec via Cygwin:
>>> 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
> ...
>>> FileNotFoundError: [Errno 2] No such file or directory:
>>> '/usr/lib/python3.12/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl'
> 
> python on Cygwin was always built without ensurepip
> so no surprise that is not working.
> 
> I don't know why this setting was used before I took over.
> I am checking now to build with ensurepip

not working.


>>
>> I had exactly the same problem here and gave up recently. Looking again
>> into this I found the missing file in package python312-virtualenv via
>> "cygcheck -p pip-25.0.1-py3-none-any.whl".
>>
>> After installing the package python312-virtualenv, the missing file is
>> not at the expected location.
>>
>> So with a new directory /usr/lib/python3.12/ensurepip/_bundled/ and a 
>> symbolic link
>> /usr/lib/python3.12/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl - 
>> > /usr/lib/python3.12/site-packages/virtualenv/seed/wheels/embed/ 
>> pip-25.0.1-py3-none-any.whl
>> "python3.12 -m ensurepip" worked for me.
>>
> 
> thanks for the checking, I will look on it.

added same workaround on python{3.9,3.12}-virtualenv
so with it

$ python3.12 -m ensurepip
Looking in links: /tmp/tmp8zomc830
Requirement already satisfied: pip in /usr/lib/python3.12/site-packages 
(26.0.1)




More information about the Cygwin mailing list