python
data_error
ai_generated
true
pip._vendor.packaging.version.InvalidVersion: Invalid version: 'v1.2.3-beta!'
ID: python/pip-legacy-version-parse-invalidversion
80%Fix Rate
84%Confidence
0Evidence
2024-12-02First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
A requirement string or metadata contains a version not conforming to PEP 440.
generic中文
需求字符串或元数据包含不符合 PEP 440 的版本。
Workarounds
-
90% success
pip install "foo==1.2.3b1" # correct pre-release format
-
85% success
pip install git+https://github.com/org/[email protected]
Dead Ends
Common approaches that don't work:
-
70% fail
Legacy resolver still parses versions and fails.
-
65% fail
Pre-release flag does not accept non-PEP440 versions.