Skip to content

Installing

If you are familiar with setting up a Python environment, then run the following command in your terminal:

pip install mesop

If you're not familiar with setting up a Python environment, follow one of the options below.

Colab is a free hosted Jupyter notebook product provided by Google.

Try Mesop on Colab: Open In Colab

B. Command-line

If you'd like to run Mesop locally on the command-line, follow these steps.

Pre-requisites: Make sure you have Python version 3.10 or later installed by running:

python --version

If you don't, please download Python.

Create a venv environment

  1. Open the terminal and navigate to a directory: cd foo

  2. Create a virtual environment by using venv, which will avoid Python environment issues. Run:

python -m venv .venv
  1. Activate your virtual environment:

    source .venv/bin/activate
    
    .venv\Scripts\activate.bat
    
    .venv\Scripts\Activate.ps1
    

Once you've activated the virtual environment, you will see ".venv" at the start of your terminal prompt.

  1. Install mesop:
pip install mesop

Upgrading

To upgrade Mesop, run the following command:

pip install --upgrade mesop

If you are using requirements.txt or pyproject.toml to manage your dependency versions, then you should update those.

Next steps

Follow the quickstart guide to learn how to create and run a Mesop app:

Quickstart