ImportError: cannot import name 'automl' from 'azureml.train.automl' (/azureml-envs/azureml_89565d19afbab05f653b07aa2f3c8600/lib/python3.8/site-packages/azureml/train/automl/__init__.py)

Gülşah Kılıç 0 Reputation points
2024-03-21T08:10:58.1733333+00:00

i started my notebook. i sent the work I created to automl, but the Execution failed in automl. User process '/azureml-envs/azureml_89565d19afbab05f653b07aa2f3c8600/bin/python' exited with status code 1. Please check log file 'user_logs/std_log.txt' for error details. Error: Traceback (most recent call last):

File "setup_AutoML_e3194cea-dbd1-4f72-9513-cb16912fc86e.py ", line 26, in <module>

from azureml.train.automl import automl

ImportError: cannot import name 'automl' from 'azureml.train.automl' (/azureml-envs/azureml_89565d19afbab05f653b07aa2f3c8600/lib/python3.8/site-packages/azureml/train/automl/init.py)

i got the error, how can we solve it. Automl to the terminal part.i've done import operations for the train, but I don't think he's reading

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,729 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 48,586 Reputation points
    2024-03-21T21:37:01.9133333+00:00

    @Gülşah Kılıç

    Thanks for reaching out to us, are you using SDK v1 for your development?

    If you are using SDK v2, please check on the samples below for your reference -

    https://github.com/Azure/azureml-examples/tree/main/sdk/python

    The package you are using in v2 for Azure Machine Learning should be -

    pip install azure-ai-ml
    

    Please have a try and let us know how it works! I hope this helps.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks lot.

    0 comments No comments