RDKit/en
RDKit is a collection of cheminformatics and machine-learning software written in C++ and Python.
Available versions¶
rdkit C++ libraries and Python bindings are available as a module.
You can find available versions with:
and look for more information on a specific version with:
whereX.Y.Z is the exact desired version, for instance 2024.03.5.
Python bindings¶
The module contains bindings for multiple Python versions. To discover which are the compatible Python versions, run:
where X.Y.Z represents the desired version.
rdkit as a Python package dependency¶
When rdkit is a dependency of another package, the dependency needs to be fulfilled:
-
Deactivate any Python virtual environment.
Note
If you had a virtual environment activated, it is important to deactivate it first, then load the module, before reactivating your virtual environment.
-
Load the module.
-
Check that it is visible by
If no errors are raised, then everything is OK!pip.
Troubleshooting¶
ModuleNotFoundError: No module named 'rdkit'¶
If rdkit is not accessible, you may get the following error when importing it:
Possible solutions:
* Check which Python versions are compatible with your loaded RDKit module using module spider rdkit/X.Y.Z. Once a compatible Python module is loaded, check that python -c 'import rdkit' works.
* Load the module before activating your virtual environment: please see the rdkit as a package dependency section above.
See also ModuleNotFoundError: No module named 'X'.