Adrianna Puślecka Thanks, Can you try using the latest version as shown below.
You can try to upgrade pip and then install the azure package using these commands:
pip install --upgrade pip
pip install azure-ai-ml
Did you follow the steps to install azure ai ml.
https://learn.microsoft.com/en-us/python/api/overview/azure/ai-ml-readme?view=azure-python