According to https://github.com/googleapis/google-api-python-client#installation, you need to install the google-api-python-client package:
pip install --upgrade google-api-python-client
Answer from Saber on Stack OverflowAccording to https://github.com/googleapis/google-api-python-client#installation, you need to install the google-api-python-client package:
pip install --upgrade google-api-python-client
Use this both installation and then go ahead with your Python code:
pip install google-cloud
pip install google-cloud-vision
ModuleNotFoundError: No module named 'google.cloud'
Erro "No module named" but the module is already installed
Simple but frustrating error: Google.cloud module not found
Help PyInstaller: ModuleNotFoundError 'google'
Where can I find more ModuleNotFoundError fixes?
Why does my code work in one environment but not another?
Videos
I've installed "google-generativeai" for Python, using:
pip install -U google-generativeai
But when I run my code, I am receiving error:
import os import google.generativeai as genai
ModuleNotFoundError: No module named 'google.generativeai'
When I list the modules by "pip list" it shows the module installed.
Anyone knows what to do?
I've already restarted my computer and the error is still showing.
I'm using PyInstaller to convert a python file into an executable. It seems that it cannot find the google module.
I made sure my PyInstaller is up to date.
Code to recreate the problem.
-
from google.auth.transport.requests Import Request
-
def main():
-
print(Request)
-
if name == 'main':
-
main()
ERROR Failed to execute script 'main' due to unhandled exception: No module named 'google'
ModuleNotFoundError: No module named 'google'
Edit: Im using windows
» pip install scikit-learn