i got an error while creating an flask api it says
File “/home/vishal6596/mysite/flask_app.py”, line 7, in
import gspread
File “/home/vishal6596/.local/lib/python3.10/site-packages/gspread/init.py”, line 7, in
from .auth import (
File “/home/vishal6596/.local/lib/python3.10/site-packages/gspread/auth.py”, line 14, in
from google.auth.api_key import Credentials as APIKeyCredentials
ModuleNotFoundError: No module named ‘google.auth.api_key’
I thought about using gspread to write data to google sheet using flask api but the gspread library is not working in python anywhere
when i tried the same code in pycharm it worked well and give me the desired output
please help me with this kind of error
VISHAL SHARMA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.