title: ImportError: cannot import name 'enums'
body: <p>I am trying to use Google Speech API to recognize speech from mic input in real time. I have tried <code>https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_streaming_mic.py
  </code> but this error came out. Anybody knows how to solve this?</p>
  
  <pre><code>from google.cloud.speech import enums
  ImportError: cannot import name 'enums'
  </code></pre>
  
  <p><strong>Update:</strong>
  I have solved the problem by running the code in virtual environment as suggested by the official Cloud Speech API website. However, I still dont understand why we need to run that in virtual environment instead of my original environment as the virtual environment is not Linux or other OS.</p>