Re: python3.12 ensurepip fails
Marco Atzeri via Cygwin <[email protected]>
| Newsgroups | gmane.os.cygwin |
|---|---|
| Message-ID | <[email protected]> |
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 >> ``` > ... >> 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 > > Hello, > > 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. > I'm aware you are not asking for a workaround, so concerning your question I > guess this is a glitch in a cygwin package or maybe upstream. > > Finally I am considering my cygwin transition from python3.9 to python3.12 > because "python3.12 -m venv venv" also succeeds now. > > Regards, > Harald > Regards Marco -- 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