Share via

getting an error when trying to deploy azure ml model

jj.yuu 26 Reputation points
2021-12-13T18:11:51.37+00:00

I'm new to Azure ML so I have very little knowledge of this service..
I've built a dummy regression model using automl package and now I'm trying to deploy it.
I looked up some docs and followed a tutorial I found to deploy the model and I'm getting some errors..
157189-image.png <- this is the error I'm currently getting
I think there is a problem with my score.py so I'm attaching the photo here as well.
157272-image.png

and this is the output i need to print out through the model..
157242-image.png

I'd appreciate it much if somebody could give me some help

thank you

Azure Machine Learning
0 comments No comments

Answer accepted by question author

YutongTie-9091 54,021 Reputation points Moderator
2021-12-14T05:30:21.473+00:00

Hello,

Thanks for reaching out to us. From the above error it looks like the package did not install successfully. A more detailed procedure to install the SDK is available directly in the documentation: https://learn.microsoft.com/en-us/python/api/overview/azure/ml/install?view=azure-ml-py

How to set up the environment: https://github.com/Azure/azureml-examples/tree/main/python-sdk/tutorials/automl-with-azureml#3-setup-a-new-conda-environment

You can test if you have set the env correct by below code:

import azureml.core  
  
print("This notebook was created using version 1.35.0 of the Azure ML SDK.")  
print("You are currently using version", azureml.core.VERSION, "of the Azure ML SDK.")  
assert (  
    azureml.core.VERSION >= "1.35"  
), "Please upgrade the Azure ML SDK by running '!pip install --upgrade azureml-sdk' then restart the kernel."  

There are some prerequisites to deploy models:

More information please refer to https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-and-where?tabs=python#prerequisites

Hope this will help. Please let us know if any further queries.

------------------------------

  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
  • Want a reminder to come back and check responses? Here is how to subscribe to a notification
  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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