On Fri, Jul 3, 2026 at 2:59 PM Harald Köhler via Cygwin <[email protected]> wrote:
> Am 2026-07-02 21:02:24, schrieb Soren via Cygwin: > > Greetings and thanks Harald. My replication of your steps resulted in a > > traceback. > > On Wed, Jul 1, 2026 at 10:53 AM Harald Köhler via Cygwin < > [email protected]> > > wrote: > > > > > > > > the error message seems similar to thread "python3.12 ensurepip fails" > > > from 2026-02-07 and later. The fix was a workaround in > > > python{3.9,3.12}-virtualenv. > > > Soren, I believe the system package installer (in this case the Cygwin setup.exe), and Python's pip package cooperate so that a package installed by the system installer cannot be overwritten by using "pip install --upgrade PKG". For example, when pip has been installed using Cygwin setup.exe, trying to install a newer version of pip will fail. In earlier releases of pip, the install would succeed, but "cygcheck" would show that the pip package was "incomplete", I think because some files were not identical to those in the currently installed "python-pip" package. Without delving deeper, I suspect that the ensure pip package is trying to replace or upgrade the version of pip installed by setup.exe so that the process I describe above fails. But I cannot find the ensurepip package using setup.exe, where are you getting the ensurepip package from? As far as I can tell, there is no longer a python 3.12 package for ensurepip via setup.exe, and I can't find ensurepip on PyPI. Now, to get pip you must install a python-pip package that matches your python version. IIRC, I saw this in a What's New for an older Python version (I am mostly using 3.15beta3 now, so 3.12 is ancient for me). I think I had to drill down to changes in pip. Then again it may have been a PEP about having the OS installer and pip cooperate so they did not tread on each other when packages were installed or updated. Ha, a google search for "PEP about having the OS installer and pip cooperate" found PEP 668. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- 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

