I’ve recently started hacking with DeepChem in Colab. I thought it might be useful to post the recipe here for any other folks who are interested in using Colab. Paste the following into your first cell in your Colab notebook:
!wget -c https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
!chmod +x Anaconda3-2019.10-Linux-x86_64.sh
!bash ./Anaconda3-2019.10-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y -c deepchem -c rdkit -c conda-forge -c omnia deepchem-gpu=2.3.0
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')
import deepchem as dc
Happy hacking! Post on this issue if you run into any problems
Edit: Google’s updated their Colab instances to use TensorFlow 2.X by default. The last stable version of DeepChem is still on TensorFlow 1.X. You can make sure your colab notebook runs by adding the following command at the top of your Colab notebook:
%tensorflow_version 1.x