# detect_install_method

> **Function** in `deepagents_cli`

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

Detect how `deepagents-cli` was installed.

Checks `sys.prefix` against known paths for uv and Homebrew.

## Signature

```python
detect_install_method() -> InstallMethod
```

## Returns

`InstallMethod`

The detected install method: `'uv'`, `'brew'`, `'pip'`, or `'unknown'`
(editable/dev installs).

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/b710a69b12e49479045eaa54dfb709326473500b/libs/cli/deepagents_cli/update_check.py#L227)