Spaces:
Sleeping
Sleeping
File size: 2,120 Bytes
886d8e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
---
title: Setup
---
## Experimental one-line installers
To try our experimental installers, open your Terminal with admin privileges [(click here to learn how)](https://chat.openai.com/share/66672c0f-0935-4c16-ac96-75c1afe14fe3), then paste the following commands:
<CodeGroup>
```bash Mac
curl -sL https://raw.githubusercontent.com/KillianLucas/open-interpreter/main/installers/oi-mac-installer.sh | bash
```
```powershell Windows
iex "& {$(irm https://raw.githubusercontent.com/KillianLucas/open-interpreter/main/installers/oi-windows-installer.ps1)}"
```
```bash Linux
curl -sL https://raw.githubusercontent.com/KillianLucas/open-interpreter/main/installers/oi-linux-installer.sh | bash
```
</CodeGroup>
These installers will attempt to download Python, set up an environment, and install Open Interpreter for you.
## Terminal usage
After installation, you can start an interactive chat in your terminal by running:
```bash
interpreter
```
## Installation from `pip`
If you already use Python, we recommend installing Open Interpreter via `pip`:
```bash
pip install open-interpreter
```
<Info>
**Note:** You'll need Python
[3.10](https://www.python.org/downloads/release/python-3100/) or
[3.11](https://www.python.org/downloads/release/python-3110/). Run `python
--version` to check yours.
</Info>
## Python usage
To start an interactive chat in Python, run the following:
```python
from interpreter import interpreter
interpreter.chat()
```
You can also pass messages to `interpreter` programmatically:
```python
interpreter.chat("Get the last 5 BBC news headlines.")
```
[Click here](/usage/python/streaming-response) to learn how to stream its response into your application.
## No Installation
If configuring your computer environment is challenging, you can press the `,` key on this repository's GitHub page to create a codespace. After a moment, you'll receive a cloud virtual machine environment pre-installed with open-interpreter. You can then start interacting with it directly and freely confirm its execution of system commands without worrying about damaging the system.
|