# 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/3812967c84d90619848f3185f22470204fc88bd8/libs/code/deepagents_code/update_check.py#L1459)