... Short story:
I have a Python program with just one line:
from google.auth.transport.requests import Request
When I run it from the python3 command or from Thonny, I get this message:
ModuleNotFoundError: No module named 'google'
I had installed modules on pi, and tried several "solutions" from the web, none of them worked (the libraries install ok, but the python script still fails with the same error):
pip install google-auth
pip install requests
pip install google-auth-oauthlib
pip install google-api-python-client
LONG STORY:
I had also installed those libraries ...
(those solutions were suggested on several web pages. I've just googled some hours... Some of them seem to be VERY UNRELATED TO MY PROBLEM, but hey, who knows...)
pip install google-api-core
pip install google.cloud.storage
pip install protobuf
pip install google
pip install google-auth
pip install google-cloud-vision
pip install google-cloud
pip install google-cloud-translate
pip install google.cloud.bigquery
pip install --upgrade google-api-python-client
pip install requests
And the last one, that made me SICK, was to reinstall python3. I'd followed the instructions here: How do I reinstall Python 3?
I did that, and as the answer there shows, I lost my Desktop, Thonny and who knows what !!!
So, just to keep developing and mortifying myself, how can I fix my PI and get that IMPORT working ?
Thanks for your patience and help !