Search code examples
pythonazure-machine-learning-serviceazureml-python-sdkazuremlsdk

Python AzureML Hello world - Can't find module azureml


Python 3.10, Pip install azureml-sdk 1.39.0.
Environments: Win10 PS, VS2022, and a docker image- all same results . Pip show shows the azureml-core package.

Simple (I thought) script, but it can't find "azureml.core" No module named azureml is the error. How do I make it "find" it? I'm new at python so it could be syntax.

import os
from azureml.core import Workspace, Experiment, Environment, Model,Dataset,Datastore,ScriptRunConfig
     
    # check core SDK version number
    print("Azure ML SDK Version: ", azureml.core.VERSION)

Solution

  • azureml python sdk does not support py3.10 yet, AutoML sdk supports py<=3.8.