Skip to main content
Log in

Install guide

You can install all the Modular APIs and tools (including MAX and Mojo) as a single package called modular, using pip or magic (or other Python and Conda package managers).

The modular package is available as a nightly and a stable build. You can also select the latest nightly or stable documentation, using a drop-down in the website header. By default, we show the nightly version so you always see the latest APIs and documentation.

If you just want to get started, instead see our quickstart guide.

Install

To get the latest performance improvements and new features, we recommend installing our nightly build, which we release several times a week. If you want a better tested but slightly older version, you can install a stable build. (Each stable release is described in the changelog.)

  1. Create a project folder:
    mkdir modular && cd modular
    mkdir modular && cd modular
  2. Create and activate a virtual environment:
    python3 -m venv .venv/modular \
    && source .venv/modular/bin/activate
    python3 -m venv .venv/modular \
    && source .venv/modular/bin/activate
  3. Install the modular Python package:
    pip install modular \
    --index-url https://download.pytorch.org/whl/cpu \
    --extra-index-url https://dl.modular.com/public/nightly/python/simple/
    pip install modular \
    --index-url https://download.pytorch.org/whl/cpu \
    --extra-index-url https://dl.modular.com/public/nightly/python/simple/

The modular package installs MAX, Mojo, and other package dependencies.

Uninstall

You can uninstall modular from your virtual environment with the following command:

pip uninstall modular
pip uninstall modular

To deactivate your virtual environment, run:

deactivate
deactivate

What's included

The modular Python wheel installs the following:

pip known issues:

  • The Mojo LSP and Mojo debugger aren't included. If you want to develop with Mojo, we currently recommend you install the modular conda package with Magic or conda.

Next steps