Hey. I am having trouble with this too. I followed instructions from https://help.pythonanywhere.com/pages/Flask/ and I have gspread==3.6.0 in my requirements.txt file and used pip install -r requirements.txt.
When I went into bash and did ~/mysite $ pip show gspread, it gave me
"Name: gspread
Version: 3.6.0
Summary: Google Spreadsheets Python API
Home-page: https://github.com/burnash/gspread
Author: Anton Burnashev
Author-email: fuss.here@gmail.com
License: MIT
Location: /home/KwikLook/.virtualenvs/my-virtualenv/lib/python3.6/site-packages
Requires: google-auth-oauthlib, google-auth, requests"
so I know it's installed but when I refresh the web app and try to load it up i get the below in my error logs:
2020-12-15 08:28:27,399: File "/home/KwikLook/mysite/flask_app.py", line 18, in <module>
2020-12-15 08:28:27,399: *********
2020-12-15 08:28:27,399: If you're seeing an import error and don't know why,
2020-12-15 08:28:27,399: we have a dedicated help page to help you debug:
2020-12-15 08:28:28,033: Error running WSGI application
2020-12-15 08:28:28,033: ModuleNotFoundError: No module named 'gspread'
2020-12-15 08:28:28,033: File "/var/www/kwiklook_pythonanywhere_com_wsgi.py", line 16, in <module>
2020-12-15 08:28:28,033: from flask_app import app as application # noqa
2020-12-15 08:28:28,033:
2020-12-15 08:28:28,034: File "/home/KwikLook/mysite/flask_app.py", line 18, in <module>
2020-12-15 08:28:28,034: import gspread
Help !