I was trying to download file from my google drive to colaboratory.
file_id = \'1uBtlaggVyWshwcyP6kEI-y_W3P8D26sz\'
import io
from googleapiclient.http import M
the easiest method to download a file from google drive to colabo notebook is via the colabo api:
from google.colab import drive
drive.mount('/content/gdrive')
!cp '/content/gdrive/My Drive/<file_path_on_google_drive>' <filename_in_colabo>
Remarks: