> For the complete documentation index, see [llms.txt](https://docs.trymito.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trymito.io/getting-started/installing-mito/setting-up-a-virtual-environment.md).

# Setting Up a Virtual Environment

Installing Mito in a virtual environment reduces dependency issues and ensures that Mito will not impact any of your other Python projects.&#x20;

Setting up a virtual environment is dependent on your Python installation method/package manager. Below are several of the most common methods. &#x20;

### Default Python Virtual Environments&#x20;

Create a new environment:

```
python -m venv mitoenv
```

Activate the environment:&#x20;

* **On Windows** in command prompt:

```
mitoenv\Scripts\activate.bat
```

* **On Mac**:

```
source mitoenv/bin/activate
```

### Anaconda Navigator

To install Mito within an Anaconda Navigator virtual environment:

1. Select `Environments` in the left navigation
2. Select the `Create` button to create a new environment
3. Give your new environment a descriptive name like `Mito`
4. Make sure it is configured to use Python >3.8
5. Click `create`
6. After the environment is created, switch to `Home`, and select the `Mito` environment you just created.
7. Select the "▶" icon next to your new environment. Then select "Open terminal".
8. In the terminal, install the Mito Jupyter Lab extensions by running the command:

```
python -m pip install mitosheet mito-ai
```

**Use Mito**

1. Click on the `Home` button&#x20;
2. Find the `Juptyer Lab` tile, make sure it is running JupyterLab ≥ 4.1 and press `Launch`
3. Then, follow these instructions to [create a mitosheet](/how-to/creating-a-mitosheet.md) and [use AI](/mito-ai/chat.md).

### Conda&#x20;

#### Installing Mito in a Conda virtual environment <a href="#installing-mito-in-a-conda-virtual-environment" id="installing-mito-in-a-conda-virtual-environment"></a>

Create a new conda environment:

<pre><code><strong>conda create -n mitoenv python=3.10
</strong></code></pre>

Activate your new environment:

```
conda activate mitoenv
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.trymito.io/getting-started/installing-mito/setting-up-a-virtual-environment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
