pkgdown/header.html

Skip to contents

Sets and verifies the Python environment to be used in the PRIMEmodel pipeline. This includes specifying a path to a Python binary, virtual environment, or conda environment, checking for required Python packages and their versions, and ensuring runtime compatibility.

Usage

plc_configure_python(python_path = NULL)

Arguments

python_path

Path to Python binary, virtualenv, or conda environment.

Value

Python configuration object from `reticulate::py_config()`

Details

In addition to package version checks, this function performs a runtime test to verify that `scipy.sparse.save_npz()` works correctly through `reticulate`. This prevents downstream failures during profile saving if Python is misconfigured, especially when using system Python without setting `RETICULATE_PYTHON` early in the session.