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._AbstractRunConfigElementPythonSection
Constructor
PythonSection(**kwargs)
Variables
- user_managed_dependencies
- bool
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
- CondaDependencies
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>.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for