Use google drive folder
Fixed values except workingDir
% cd
is no longer available (or may not be available depending on the assigned environment)
# mount google drive
from google.colab import drive
drive.mount('/content/gdrive')
# add path
import sys
workingDir = 'path/to/folder'
sys.path.append(f'/content/gdrive/My Drive/{workingDir}')
# change working directory
import os
os.chdir(f'/content/gdrive/My Drive/{workingDir}')
%ls
Fixed version of tensorflow
# 2.x
%tensorflow_version 2.x
# 1.x
%tensorflow_version 1.x
apt-get, pip execution
!apt-get install -y tool
!pip install -r requirements.txt
Recommended Posts