Python Azure Packages Not Recognized

Chris Sommers 0 Reputation points

Hi -

I cannot get the Azure packages to run. I've tried it in virtual environments with Python 3.8, 3.10 and 3.11.

I continuously get the following error, despite the fact it shows as installed.

python file:

from import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential

and the console then shows:

.venv) PS C:\Users\ChrisSommers\repos\azure> & c:/Users/ChrisSommers/repos/azure/.venv/Scripts/python.exe c:/Users/ChrisSommers/repos/azure/
Traceback (most recent call last):
  File "c:/Users/ChrisSommers/repos/azure/", line 2, in <module>
    from import DocumentAnalysisClient
  File "c:\Users\ChrisSommers\repos\azure\", line 2, in <module>
    from import DocumentAnalysisClient
ModuleNotFoundError: No module named ''; 'azure' is not a package
(.venv) PS C:\Users\ChrisSommers\repos\azure> pip show azure-ai-formrecognizer
Name: azure-ai-formrecognizer
Version: 3.3.0
Summary: Microsoft Azure Form Recognizer Client Library for Python
Author: Microsoft Corporation
License: MIT License
Location: c:\users\chrissommers\repos\azure\.venv\lib\site-packages
Requires: azure-common, azure-core, msrest, typing-extensions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,436 questions
{count} votes