Replace "package" with your target. This method bypasses pip entirely and directly queries PyPI[2].
Using uv
Since uv is a drop-in replacement for pip, use the same pip commands prefixed with uv:
bash
uv pip install package==invalid_version # Fake version method
uv pip install pip-versions && uv pip run pip-versions list package # pip-versions tool
uv will handle dependency resolution and installation similarly to pip[1][6][7].
Key Differences
Method
Pros
Cons
Fake Version
No extra tools required
Error-based output
pip-versions
Clean, dedicated tool
Requires installation
PyPI API
Direct source access
Requires curl/jq
uv
Faster than pip
No native version-listing command
For most use cases, the fake version trick or pip-versions are the simplest solutions. uv users should leverage its pip compatibility for these workflows[2][6][7].