ModuleNotFoundError: No module named 'grpc' in Python beheben
English
Deutsch
Problem:
Du möchtest ein Python-Skript ausführen, das einige Google Cloud Services verwendet. Jedoch siehst du eine Fehlermeldung ähnlich dieser:
grpc_module_not_found.txt
[...]
File "/usr/local/lib/python3.6/dist-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
from google.api_core.gapic_v1 import config
File "/usr/local/lib/python3.6/dist-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
import grpc
ModuleNotFoundError: No module named 'grpc'Lösung
Installiere das grpcio Python-Modul:
install_grpc.sh
pip install -U grpcioIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow