Kindly install azure-ai-ml library
pip install azure-ai-ml
Optional: pip install azure-identity
Answer from Sachin Ichake on learn.microsoft.comKindly install azure-ai-ml library
pip install azure-ai-ml
Optional: pip install azure-identity
Hello @Antony Stephen
Sorry for your experience and thanks for reaching out to us, I am able to reproduce your issue with my new create compute-cpu.
There are two workaround working well for myself, please have a try and let me know if that works for you or not -
1.Copy the whole Tutorial file as this guidance - https://learn.microsoft.com/en-us/azure/machine-learning/quickstart-run-notebooks#clone-tutorials-folder
2.Easy install the azureml in your compute at the terminal under your root user.
pip install azureml

Just in case, I encounter pyarrow error after that, the resolution is uninstall the pyarrow 4.0 and install pyarrow 3.0.0 instead as below:
pip uninstall pyarrow
pip install pyarrow==3.0.0
I have forwarded this bug to product group and hope to make this process smoother. Please let me know how is things going and I am willing to help more.
Regards,
Yutong
Please kindly accept the answer if you feel this is helpful. Thank you.
ModuleNotFoundError: No module named 'azure'
Azure Machine Learning - running code in curated environement gives ModuleNotFoundError: No module named 'azure.ai'
azure.ai.ml package missing from compute instance software version 25.06.10
Python Azure Packages Not Recognized
im trying to import a library like this :
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
endpoint = "https://<my-custom-subdomain>.cognitiveservices.azure.com/"
credential = AzureKeyCredential("<api_key>")
document_analysis_client = DocumentAnalysisClient(endpoint, credential)
and i downloaded prior to that the library :
pip install azure-ai-formrecognizer
and when i run pip list it shows the library is there :
(.venv) PS C:\projects\mastercontrol> pip3 list
Package Version
----------------------- ----------
azure-ai-formrecognizer 3.3.3
azure-common 1.1.28
azure-core 1.32.0
certifi 2024.12.14
charset-normalizer 3.4.1
idna 3.10
isodate 0.7.2
msrest 0.7.1
oauthlib 3.2.2
pip 24.3.1
requests 2.32.3
requests-oauthlib 2.0.0
six 1.17.0
typing_extensions 4.12.2
urllib3 2.3.0
but im still getting that azure module doesnt exist any help ?
Azure Form Recognizer client library for Python | Microsoft Learn
pip install didnt' work for me.
python --version
which showed Python 3.10.5
Did this:
pip3 install azure-storage-blob azure-identity
and was then able to use the imported azure functionality.
from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient
instead, use this way to install: python3 -m pip install <package_to_install>
I'm creating an Azure Function with Python runtime in vs code, the environment of the function is set up by Vs code, and the function is getting executed by vs code using Azure core tools in debug mode. While setting up, the environment a requirements.txt file was also created.
I have added the 'azure-identity' to the requirements.txt file. When I execute the function, the azure-identity is getting installed(I'm assuming so since the module is accessible from the code file in vs code, by clicking on the import statement), but the function is giving an error:
Result: Failure Exception: ModuleNotFoundError: No module named 'azure.identity'. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: https://aka.ms/functions-modulenotfound
Can anyone please let me know, how can I resolve the issue?