Trying to run AI900 Cognitive Services on local machine VS Code ended in error

Jun Kai Herman Teo 76 Reputation points
2021-05-06T17:03:23.843+00:00

Hello,

I am a new learner to AI900 course. I hope my question not too rudimentary or ludicrous.

I am able to perform the exercise for the Cognitive Services - Computer Vision using the free VM environment provided, albeit only after a short while that I realize I need to deploy my Azure subscription in the VM to do it successfully rather than using the local machine.

Now I am trying to replicate the exercise using my own VS Code and my Azure subscription on my local environment. However, I encountered an error when progressing through the exercise.


ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-72a4e0dfff5e> in <module>
----> 1 from azure.cognitiveservices.vision.computervision import ComputerVisionClient
2 from msrest.authentication import CognitiveServicesCredentials
3 from python_code import vision
4 import os
5 get_ipython().run_line_magic('matplotlib', 'inline')

ModuleNotFoundError: No module named 'azure'

Several attempts at troubleshooting makes me realize that Cognitive Services may need a VM deployed to work after all. Am I correct to say that?

Or is there a code change I can do to draw the image out to my local machine and perform the analysis?

Thank you!

Kind regards,
Herman

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,373 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Jun Kai Herman Teo 76 Reputation points
    2021-05-07T15:58:57.31+00:00

    Hi,

    This is embarrassing. I did some more investigation, and realized that I did not set up my local environment properly. I followed VS Code to the letter, but neglected Github instructions.

    Problem is solved. I am able to run all the tutorials that require a VM.

    That said, thank you to @GiftA-MSFT for quickly reaching out to me on my issue.

    Kind regards,
    Herman