ModuleNotFoundError: No module named 'azureml.train'

Eltohami, Hesham (H) 5 Reputation points
2023-04-12T17:12:29.42+00:00

I am getting the following error: ModuleNotFoundError: No module named 'azureml.train' Whenever I try to import the HyperDriveConfig module: from azureml.train.hyperdrive import HyperDriveConfig. I tried the suggested solution from the following post: https://learn.microsoft.com/en-us/answers/questions/1168278/modulenotfounderror-no-module-named-azureml-train pip install azureml-sdk[train] but I am getting the following: WARNING: azureml-sdk 1.48.0 does not provide the extra 'train' Regards, Hesham

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,339 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,971 Reputation points Moderator
    2023-04-13T06:01:46.43+00:00

    Hello @Eltohami, Hesham (H)

    Thanks for reaching out to us for this question.

    Unfortunately, the azureml-train package has been deprecated already and might not receive future updates and removed from the distribution altogether. Please use azureml-train-core instead.

    Reference document is here - https://pypi.org/project/azureml-train-core/

    I am sorry for all the inconveniences. Please have a try and let us know how it works. Thanks.

    Regards, Yutong

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.