How do I fix the ImportError: cannot import name 'delayed'?

Ghada 31 Reputation points
2022-10-01T13:15:57.437+00:00

I am using the LORAS package from pyloras for imbalanced learning, but it requires importing the delayed package. I used the pip.main() to install the delayed package and from delayed.delay imported delayed. However, I am still getting the following error: ImportError: cannot import name 'delayed'. I appreciate your help and suggestions.

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,476 Reputation points Microsoft Employee
    2022-10-10T05:07:54.997+00:00

    You cannot import a custom environment in execute python script. You can install some packages with execute python script, but it has limitations on packages that can be installed depending on the number of dependencies of the package. Glad you can use the notebook and work on your experiments now.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    1 person found this answer helpful.
    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.