Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
606 views
in Technique[技术] by (71.8m points)

python 2.7 - ImportError: No module named google.cloud

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...