PythonSection Class

Defines the Python environment and interpreter to use on a target compute for a run.

This class is used in the Environment class.

Class PythonSection constructor.

Inheritance
azureml._base_sdk_common.abstract_run_config_element._AbstractRunConfigElement
PythonSection

Constructor

PythonSection(**kwargs)

Variables

Name Description
user_managed_dependencies

Indicates whether Azure Machine Learning reuses an existing Python environment.

If set to True, you are responsible for ensuring that all the necessary packages are available in the Python environment you choose to run the script in. If False (the default), Azure will create a Python environment for you based on the conda dependencies specification. The environment is built once, and is be reused in subsequent executions as long as the conda dependencies remain unchanged.

interpreter_path
str

The Python interpreter path. This is only used when user_managed_dependencies=True. The default is "python".

conda_dependencies

Conda dependencies.

Attributes

conda_dependencies_file

DEPRECATED. The path to the conda dependencies file to use for this run.

Use <xref:azureml.core.environment.PythonSection.from_existing_conda_environment>.