Skip to main content

Packages

All the Modular APIs and tools (including MAX and Mojo) are included in a single Python/Conda package named modular. This page explains what's in the package and shows how to install it.

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

Package managers

You can install modular as a Python or Conda package. The install instructions below include commands for popular package managers such as pixi, uv, pip, and conda, but you can also use something else.

Traditional tools like pip and conda might be necessary for existing production environments or Docker containers, but for your local development, we recommend using Pixi.

Pixi is both a package manager and virtual environment manager, which alone makes development a lot easier, but it's also language agnostic, extremely fast, and includes lock files to easily reproduce your project environment.

You'll notice that our GitHub code examples include a pixi.toml file. This file configures the environment to make sure we all use the same packages and get the same results—you just need to install pixi.

So if you're not set on using a particular package manager, we suggest you try pixi. If you haven't used it before, check out our Pixi basics guide or the official Pixi docs.

What's included

Here's a summary of what's in the modular package.

The modular conda package installs the following:

pixi known issues:

  • You might encounter issues if you invoke pixi within a conda virtual environment. It's best if you don't mix the two tools.

Install

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

  1. If you don't have it, install pixi:
    curl -fsSL https://pixi.sh/install.sh | sh
    curl -fsSL https://pixi.sh/install.sh | sh

    Then restart your terminal for the changes to take effect.

  2. Create a project:
    pixi init example-project \
    -c https://conda.modular.com/max-nightly/ -c conda-forge \
    && cd example-project
    pixi init example-project \
    -c https://conda.modular.com/max-nightly/ -c conda-forge \
    && cd example-project
  3. Install the modular conda package:
    pixi add modular
    pixi add modular
  4. Start the virtual environment:
    pixi shell
    pixi shell

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

Uninstall

You can uninstall modular from your virtual environment with this command:

pixi remove modular
pixi remove modular

To deactivate your virtual environment, run:

exit
exit

Was this page helpful?