install packages google colab code example
Example 1: install python package from git colab
!pip install git+https://github.com/cehorn/GLRM.git
Example 2: how to import custom libraries in colab
from google.colab import files
uploaded = files.upload()
for file in uploaded:
print("file name : {} , length: {}".format(file,len(file)))
'''
chosen_file_name.py(text/x-python) - 1842 bytes, last modified: 09/06/2020 - 100% done
Saving chosen_file_name.py to chosen_file_name.py
file name : chosen_file_name.py , length:(the length of file)
'''
import chosen_file_name