# detect_install_method

> **Function** in `deepagents_code`

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

Detect how `deepagents-code` 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'`, `'other'`, or `'unknown'`
(editable/dev installs).

---

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