# read_installed_distribution_version

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/update_check/read_installed_distribution_version)

Read the currently installed `deepagents-code` distribution version.

Unlike `__version__`, this does not come from the module this process
imported at launch: it reads the running tool environment's
`deepagents_code-*.dist-info` directory name from disk, so it reflects the
install even after an in-session upgrade rewrote the environment. Used to
report what an upgrade actually installed.

## Signature

```python
read_installed_distribution_version() -> str | None
```

## Returns

`str | None`

The installed version string, or `None` when it cannot be determined
(missing/ambiguous dist-info, unreadable directory, or a version
this process's `packaging` rejects).

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/update_check.py#L330)