DeepChem is a Python library for deep learning in drug discovery, quantum chemistry, and the life sciences. It provides molecular featurization, model building, and dataset handling, supporting both TensorFlow and PyTorch backends. Current stable version is 2.8.0, with approximately bi-annual releases.
pip install deepchemNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example: load Delaney solubility dataset, train a GraphConv model, and evaluate with Pearson R².
All models now use Keras layers. TensorGraph classes have been removed.
Use Python 3.7–3.11. Downgrade Python or use a virtual environment with supported version.
Use the specific model import (e.g., 'from deepchem.models import GCNModel') and ensure required backend is installed. For PyTorch models, install PyTorch separately.
Use 'from deepchem.feat import MolGraphConvFeaturizer' instead.
Update import to 'from deepchem.feat import MolGraphConvFeaturizer' or use 'from deepchem.feat.graph_data import GraphData'.
Access features via 'graph_data.node_features.shape[1]' instead of 'graph_data.num_node_features'.
Use 'from deepchem.molnet import load_delaney' (still exists) or check if the dataset is available via 'dc.molnet.load_delaney()'. If not found, use the new API: 'from deepchem.molnet import load_delaney' (same). Actually, this error often occurs due to mismatched versions; for 2.8.0, it should be present. If not, try using 'deepchem.molnet.load_delaney'.
Install RDKit via conda: 'conda install -c conda-forge rdkit' (recommended) or pip: 'pip install rdkit-pypi' (may have issues).