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:
- An Azure Machine Learning workspace. For more information, see Create an Azure Machine Learning workspace. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace
- A model. The examples in this article use a pre-trained model.
- The Azure Machine Learning software development kit (SDK) for Python. https://learn.microsoft.com/en-us/python/api/overview/azure/ml/intro
- A machine that can run Docker, such as a compute instance. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-create-manage-compute-instance
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 or upvote 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