I ran into this error today
( I was trying to use https://github.com/raulgotor/linkerscope.git )
but even with an empty folder I get error message
even after I install " python-pip-wheel" from setup
$ mkdir /tmp/pip-test ; cd /tmp/pip-test ; python3.9 -m venv venv
mkdir /tmp/pip-test ; cd /tmp/pip-test ; python3.9 -m venv venv
Error: Command '['/tmp/pip-test/venv/bin/python3.9.exe', '-Im',
'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
I also get errors from the AI suggested test of
$ python3 -m ensurepip
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3.9/ensurepip/__init__.py", line 30, in <module>
_SETUPTOOLS_VERSION = _get_most_recent_wheel_version("setuptools")
File "/usr/lib/python3.9/ensurepip/__init__.py", line 27, in
_get_most_recent_wheel_version
return str(max(_wheels[pkg], key=distutils.version.LooseVersion))
ValueError: max() arg is an empty sequence
chatgpt did suggest that cygwin had issues with ensurepip
On Wed, Mar 5, 2025 at 2:29 AM Daniel Abrahamsson via Cygwin <
[email protected]> wrote:
> Hi,
>
> I have installed the following Python packages:
>
> * python39
> * python39-devel
> * python39-pip
>
> Then I've run `python3.9 -m venv venv`, which results in:
>
> > Error: Command
> '['/home/daab/build-essentials/venv/bin/python3.9.exe', '-Im',
> 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status
> 1.
>
> Installing the package "python-pip-wheel" solves the error. I am
> wondering if the "venv" module ought to work out of the box, or if
> manually adding this additional package is what you are supposed to do?
> It was not very obvious to me, and I have failed to find any
> documentation on it. Is it just poor search skills on my side? Should
> perhaps python-pip-wheel be a dependency of python39-pip?
>
> Regards,
> Daniel
>
>
> --
> 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
>
--
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