You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pip >= 24.1 does not display available versions with pip install pip==.
I hope removing install == is a bug not by design because it breaks backward compatibility and lots of scripts. I avoid JavaScript because of its self-incompatibility.. and I am really sad to see this in Python world :-(
You can also note break in version parsing:
WARNING: Error parsing dependencies of bleach: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
tinycss2 (>=1.1.0<1.2) ; extra == 'css'
See it does not display available versions anymore.
Output
Pip 24.2 does not display versions when == is appended to a package version:
(venv3.9embedded) pip --version
pip 24.2 from /XXX/.local/venv3.9embedded/lib/python3.9/site-packages/pip (python 3.9)
(venv3.9embedded) pip install pip==
ERROR: Invalid requirement: 'pip==': Expected end or semicolon (after name and no valid version specifier)
pip==
^
Pip 24.1 has this problem too:
(venv3.9embedded) pip install pip==24.1
Collecting pip==24.1
Using cached pip-24.1-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.0
Uninstalling pip-24.0:
Successfully uninstalled pip-24.0
Successfully installed pip-24.1
(venv3.9embedded) pip install pip==
ERROR: Invalid requirement: 'pip==': Expected end or semicolon (after name and no valid version specifier)
pip==
^
Pip 24.0 works fine:
(venv3.9embedded) pip install pip==24.0
Collecting pip==24.0
Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.0-py3-none-any.whl (2.1 MB)
WARNING: Error parsing dependencies of bleach: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
tinycss2 (>=1.1.0<1.2) ; extra == 'css'
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.1
Uninstalling pip-24.1:
Successfully uninstalled pip-24.1
Successfully installed pip-24.0
I hope removing install == is a bug not by design because it breaks backward compatibility and lots of scripts. I avoid JavaScript because of its self-incompatibility.. and I am really sad to see this in Python world :-(
Unfortunately, the specific output of this error message was never a feature that pip supported.
Description
Pip >= 24.1 does not display available versions with
pip install pip==
.I hope removing
install ==
is a bug not by design because it breaks backward compatibility and lots of scripts. I avoid JavaScript because of its self-incompatibility.. and I am really sad to see this in Python world :-(You can also note break in version parsing:
Expected behavior
As in Pip version <=24.0:
pip version
24.2
Python version
3.9.20
OS
FreeBSD
How to Reproduce
pip install pip==
.Output
Pip 24.2 does not display versions when
==
is appended to a package version:Pip 24.1 has this problem too:
Pip 24.0 works fine:
Quick workaround:
Code of Conduct
The text was updated successfully, but these errors were encountered: