[Python]ModuleNotFoundError: No module named ‘google’

$ yum install protobuf-compiler
Traceback (most recent call last):
File "test_proto.py", line 1, in <module>
import test_simple_service_pb2
File "/app/build_py3/test_simple_service_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'
$ pip3 install protobuf
$ pip install protobuf

If you like this post, you can buy me a coffee! :)

--

--

--

From Taiwan, a beautiful island. Learning English and sharing code experience.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Spring AOP and What it brings to the table

Curveball — A typescript microframework with first class AWS Lambda and HTTP/2 Push support

BirbSwap Development Update

Coolest features of Google Cloud Build

NASA or SpaceX — which one are you?

Implementing Azure AD/Azure Kubernetes Services Integration and applying Kubernetes Namespace for…

My favorite Linux distros for home use

FASTAI MODEL TO PRODUCTION — Web app that can classify images

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jaime Lin

Jaime Lin

From Taiwan, a beautiful island. Learning English and sharing code experience.

More from Medium

Replicated Acoustic Features Parkinson Database

How to Perform a Facial Landmark Detection with Keras

Python decorators in production

Python Multithreading vs Multiprocessing