Why do most azure python packages not work in python 3.10 (Azure ML Studio notebook)

Stijn Smulders 0 Reputation points
2025-04-24T13:12:41.04+00:00

I tried pip installing them, restarting kernels, etc.

If I switch to python 3.8 everything works as expected.

This is weird behavior, especially because 3.10 is the default selected python SDK.

User's image

Kind regards,

Stijn Smulders

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

1 answer

Sort by: Most helpful
  1. Manas Mohanty 3,125 Reputation points Microsoft External Staff
    2025-04-24T14:20:37.29+00:00

    Hi Stijn Smulders

    Each python kernel is separate environment.

    If you have installed "azure-keyvault" and "azure-identity" in python 3.8 kernel, it won't be accessible in python 3.10 sdk v2 or another kernel.

    You have to install them again if you are switching to different kernel for first time

    Please make sure that you are installing with below pip command

    %pip install azure-keyvault azure-identity
    
    

    instead of

    !pip install azure-keyvault azure-identity #throws module not found error.
    
    

    Attached screenshots of trials with different kernels and above command for reference.

    Screenshot (118)

    Screenshot (119)

    Screenshot (121)

    Hope it addresses your package installation issues.

    Thank you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.