upload files to drive with python had import errors

35 views Asked by At

I want to upload files to drive with python. Now I am trying to use pydrive. enter image description here enter image description here

I have tried pip install drive pip install pydrive --upgrade pip install googletrans pip install mtlsyour text

1

There are 1 answers

0
Kirill Anisimov On

As per PyDrive documentation, I assume you have a typo and need "pydrive" instead of just "drive" in the first line of your code.

Docs: https://pythonhosted.org/PyDrive/quickstart.html

Code example:

from pydrive.auth import GoogleAuth

gauth = GoogleAuth()
gauth.LocalWebserverAuth()