> This page is for Itential Gateway, version 5 (default).
> For other versions, use one of these documentation indexes:
> - 5 (default): https://docs.itential.com/itential-gateway/5/llms.txt
> - 4: https://docs.itential.com/itential-gateway/4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server.

# Python script variables

> Set the default requirements file that Gateway uses to install dependencies for Python script services.

## GATEWAY_PYTHON_SCRIPT_REQUIREMENTS_FILE

Sets the default path to the requirements file that Gateway looks for in a Python script service's working directory. The path must point to either a `requirements.txt` file or a `pyproject.toml` file.

To override this default for a single service, use the `--req-file` flag when you create the service. For more information, see [iagctl create service python-script](./iagctl/create-service-python-script).

Set this variable on both gateway servers and runners. In a distributed-execution cluster, runners must have it because they run the services.

### Environment Variable

`GATEWAY_PYTHON_SCRIPT_REQUIREMENTS_FILE`

### File

**Section:** `python-script`

**Key:** `requirements_file`

### Default

`requirements.txt`