Skip to content

ImportError: No module named 'azureml.core' #38

@kritdikoon

Description

@kritdikoon

I am doing AML tutorial in 03.auto-train-models.ipynb.
As a very new user, I get stuck from the beginning.

From Prerequisites
I am creating a workspace and its configuration file (config.json)
I create python code and run in Azure ML workbench as below: (xxx is hidden info)

#######
from azureml.core import Workspace
subscription_id ='xxxxxxx-xxxx-xxxx-bf6a-e03e4fe8bced'
resource_group ='xxxxxxx-AZURE-DEV'
workspace_name = 'xxxxxx-test-AML'

try:
ws = Workspace(subscription_id = subscription_id, resource_group = resource_group, workspace_name = workspace_name)
ws.write_config()
print('Library configuration succeeded')
except:
print('Workspace not found')

#######

After I run the script, there is an error below:

File "config.py", line 1, in
from azureml.core import Workspace
ImportError: No module named 'azureml.core'

Could you help me what did I do wrong?
It seem that azureml library is not connected.
by the way, I have installed azureml and confirm with pip freeze. (azureml==0.2.7)

conda version : 4.5.11
python version : 3.6.5.final.0
platform : win-64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions