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.
Setting up a virtual environment is dependent on your Python installation method/package manager. Below are several of the most common methods.
Default Python Virtual Environments
Create a new environment:
python -m venv mitoenvActivate the environment:
On Windows in command prompt:
mitoenv\Scripts\activate.batOn Mac:
source mitoenv/bin/activateAnaconda Navigator
To install Mito within an Anaconda Navigator virtual environment:
Select
Environmentsin the left navigationSelect the
Createbutton to create a new environmentGive your new environment a descriptive name like
MitoMake sure it is configured to use Python >3.8
Click
createAfter the environment is created, switch to
Home, and select theMitoenvironment you just created.Select the "▶" icon next to your new environment. Then select "Open terminal".
In the terminal, install the Mito Jupyter Lab extensions by running the command:
python -m pip install mitosheet mito-aiUse Mito
Click on the
HomebuttonFind the
Juptyer Labtile, make sure it is running JupyterLab ≥ 4.1 and pressLaunchThen, follow these instructions to create a mitosheet and use AI.
Conda
Installing Mito in a Conda virtual environment
Create a new conda environment:
conda create -n mitoenv python=3.10Activate your new environment:
conda activate mitoenvLast updated
Was this helpful?