Im experimenting with the bing search api from azure. I've installed the module using pip(using python -m pip install azure-cognitiveservices-search-websearch) into the virtual environment I created using venv. Have I done something wrong? Because the module can't be found by the program.
I've tried installing it globally through pip but it still didn't do what it's expected to do. I have read the help that is provided on the azure web page line by line. The module still fails to be found by the program besides the fact that, that the program is saved in the same subdirectory as the virtual environment saves to.
This is the exact code that is provided by microsoft. It isn't mine but it is what is required for the program to work.
from azure.cognitiveservices.search.websearch import WebSearchAPI
from azure.cognitiveservices.search.websearch.models import SafeSearch
from msrest.authentication import CognitiveServicesCredentials
It is expected to import the modules and then continue to run the program.But all I get in the shell is:
Traceback (most recent call last):
from azure.cognitiveservices.search.websearch import WebSearchAPI
ModuleNotFoundError: No module named 'azure'
And obviously that is not what I wanted to have outputted. What have i incorrectly done?