Skip to contents

Resolves the interpreter the way get_multimod_python() does and reports whether it exists and carries the packages a route needs. solve_pyomo() calls this before bootstrapping, so an environment that is already usable is not reinstalled on every solve.

Usage

mm_check_python(env_name = "multimod", packages = "pyomo", python = NULL)

Arguments

env_name

Conda environment to look for. Defaults to "multimod".

packages

Python packages that must import. Defaults to "pyomo".

python

Optional explicit interpreter, bypassing resolution.

Value

A list with ok, path, version and missing.