I am unable to import google.cloud.speech
from google.cloud import speech
I have installed it using :
pip install --upgrade google-cloud-speech -t dir-name
It is giving me below error while importing it from dir-name
ImportError: No module named google.cloud
google package with all the sub package is present over there but without __init__.py in every sub packages as well.
How can I import this packages without adding __init__.py in package folder?
PS : I have also tried from __future__ import absolute_import, but its not working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…