You can now install DeepChem with
import os
os.environ["TF_USE_LEGACY_KERAS"] = "True"
!pip install deepchem
import deepchem
Note that DeepChem includes RDKit, so you don't need to install RDKit separately.
And define your model like this:
model = dc.models.GraphConvModel(len(delaney_tasks), batch_size = batch_size, mode = 'regression', batch_normalize = False)
The code I copy has changed significantly, so it is better just to write the final code into your notebook.