Azure ML Workspace Notebook: ModuleNotFoundError: No module named 'azureml.pipeline'

Pascalle Veltman 0 Reputation points
2023-06-06T00:07:14.1033333+00:00

I am trying to create a pipeline in my AzureML Workspace Notebook. I have imported the top packages without issues:

!pip install pyarrow==3.0.0
!pip install python==3.8.0
!pip install azureml-core==1.51.0
!pip install azureml-pipeline-steps==1.51.0
import os
import requests
import tempfile
import azureml.core
from azureml.core import Environment
from azureml.core.runconfig import RunConfiguration
from azureml.core import Workspace
import yaml
import azureml.core

However when i try to import the azureml.pipeline package I get an error:

from azureml.pipeline.core import PipelineData
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[18], line 6
      4 import tempfile
      5 import azureml.core
----> 6 from azureml.pipeline.core import PipelineData

ModuleNotFoundError: No module named 'azureml.pipeline'

What should I do about this, is tyhere another way to create pipeline steps in the notebook? Thank you in advance!

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

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,386 Reputation points
    2023-06-06T06:37:58.3866667+00:00

    @Pascalle Veltman Welcome to Microsoft Q&A forum!

    The error message ModuleNotFoundError: No module named 'azureml.pipeline after installing azureml-pipeline-steps==1.51.0 indicates that here is a version incompatibility between azureml-pipeline-steps and azureml-core.

    Can you try installing with azureml-pipeline instead of azureml-pipeline-steps to see if that resolves the issue.

    Do let us know if that solves your issue or have any further queries.