| # Installation | |
| ## With pip | |
| Install with pip (Recommended). | |
| ```bash | |
| pip install lagent | |
| ``` | |
| ## From source | |
| Optionally, you could also build Lagent from source in case you want to modify the code: | |
| ```bash | |
| git clone https://github.com/InternLM/lagent.git | |
| cd lagent | |
| pip install -e . | |
| ``` | |