File not able to link from drive

khandelwalrajat963 at gmail.com khandelwalrajat963 at gmail.com
Wed Jun 26 04:32:39 EDT 2019


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.
auth.authenticate_user()
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
drive.mount('/content/drive')



More information about the Python-list mailing list