roverto
roverto5mo ago

Python imports

I am trying to import Azure's DocumentIntelligenceClient with the statement: from azure.ai.documentintelligence import DocumentIntelligenceClient but keep getting the error: ModuleNotFoundError: No module named 'azure' The library is normally installed with pip: pip install azure-ai-documentintelligence and I have included in my script
#extra_requirements
#azure-core==1.30.2
#azure-ai-documentintelligence==1.0.0b3
#extra_requirements
#azure-core==1.30.2
#azure-ai-documentintelligence==1.0.0b3
Is it looking for the azure module because the import statement says from azure.xxxxx import yyy? How can I import this
1 Reply
rubenf
rubenf5mo ago
you have to use #requirements: and declare all your imports we could introduce an #ignore_imports: to make this easier