Canonical: https://weaveos.com/reference/pypi/find-available-package-versions

1. [Software capabilities](https://weaveos.com/reference)
2. /[PyPI](https://weaveos.com/reference/pypi)
3. /Find available versions of a Python package on PyPI

[![](https://weaveos.com/reference/logos/pypi.svg)PyPI](https://weaveos.com/reference/pypi)

# Find available versions of a Python package on PyPI

Use pip index versions to see versions pip considers for your environment. Use the PyPI Index API to inspect release files and their individual compatibility metadata.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1CLI: python -m pip index versions \<package>](https://weaveos.com/reference/pypi/find-available-package-versions#method-1)
2. [2API: GET /simple/{project}/](https://weaveos.com/reference/pypi/find-available-package-versions#method-2)

CLI

### python -m pip index versions \<package>

Print versions on the configured package index for the current or specified Python environment.

[Read source: pip index command reference](https://pip.pypa.io/en/stable/cli/pip_index/)

- Requirements

  Python with pip, the package name, and access to an index serving that package.

- Limitations

  Pip only reports stable versions by default. Add --pre when you want to consider prereleases.

Example shell

Copy

```
python -m pip index versions packaging --index-url https://pypi.org/simple
```

API

### GET /simple/{project}/

Request the JSON representation to inspect available distribution files, their hashes, and any reported Python version requirements or yanked flag.

[Read source: PyPI Index API](https://docs.pypi.org/api/index-api/)

- Requirements

  A project name. Set Accept to application/vnd.pypi.simple.v1+json for a structured response.

- Limitations

  The index lists files. It leaves compatibility and release selection to your client.

Example shell

Copy

```
curl --fail -H 'Accept: application/vnd.pypi.simple.v1+json' https://pypi.org/simple/packaging/
```

## More from PyPI

[View all 1 PyPI tasks](https://weaveos.com/reference/pypi)
