[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File not able to link from drive

I am running a code to connect the google drive with google colab.But I have a issue after connection.My Files are not able to read by google colab even after link is established .
I have to read files from google drive in Google colab
My Code....
!pip install -U -q PyDrive
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from google.colab import auth
from oauth2client.client import GoogleCredentials
# Authenticate and create the PyDrive client.
gauth = GoogleAuth()
gauth.credentials = GoogleCredentials.get_application_default()
drive = GoogleDrive(gauth)

I am also try this but still no results..
from google.colab import drive