RDKit / Installation errors

Causes and fixes for RDKit installation errors

Common errors when installing and importing RDKit with pip or conda, listed by exact message, each with its cause and fix.

Short answer

RDKit pip packages only ship prebuilt files for certain Python versions and systems, so import fails when RDKit lands in another environment, the old rdkit-pypi name is used, or environment variables were changed by hand.

Setting up your environment this way avoids most errors on this page.

PracticeWhat happens if you skip it
Install with pip install rdkit or conda install -c conda-forge rdkit; the package name is rdkit.With the old name rdkit-pypi, newer Python versions find no installable release.
Use Python 3.10 or later.Old Python versions only get old RDKit releases, or pip finds no version at all.
Install Jupyter in the same environment as RDKit.The notebook runs another environment's Python and reports No module named rdkit.
Do not set RDBASE or PYTHONPATH, or add RDKit folders to PATH, by hand.Windows loads DLLs from the wrong place and reports DLL load failed.
In slim Linux containers, install libxrender1 and libxext6 before using drawing functions.from rdkit.Chem import Draw fails with libXrender.so.1 not found.

Troubleshooting by error message

Find your exact error message. Each entry gives the cause, the fix, and what may come up after the fix.

ModuleNotFoundError: No module named 'rdkit'

Cause: RDKit is installed in a conda environment, but IPython or Jupyter starts from base and cannot see that environment's packages.

Fix: Install ipython or jupyter in the RDKit environment and start it from there, or install with python -m pip install rdkit into the Python you are running.

What may come next: With several Jupyter kernels, also check in the top right that the kernel belongs to the RDKit environment.

ImportError: DLL load failed while importing rdBase: The specified module could not be found.

Cause: On Windows, RDBASE, PYTHONPATH or PATH was set by hand, or RDKit was built from source, so Python cannot find the DLLs it depends on.

Fix: Remove the manual environment variables and reinstall with pip install rdkit or conda install -c conda-forge rdkit; for your own build, call os.add_dll_directory on the RDKit lib folder before importing.

What may come next: Since Python 3.8, Windows no longer searches PATH for DLLs, so old tutorials that edit PATH no longer work.

ERROR: Could not find a version that satisfies the requirement rdkit==2020.03.2.0 (from versions: none)

Cause: The pinned old version does not exist on PyPI, or there is no package for your Python version.

Fix: Drop the version and run pip install rdkit; if you must pin, choose a version that PyPI provides for your Python.

What may come next: The latest RDKit supports only Python 3.10 and later, so Python 3.8 and 3.9 get older releases.

pip install rdkit-pypi finds no installable version on Python 3.12 and later

Cause: rdkit-pypi is the old package name, and its last release, 2022.9.5, only ships packages for Python 3.7 to 3.11.

Fix: Change rdkit-pypi to rdkit in requirements.txt.

ImportError: libXrender.so.1: cannot open shared object file: No such file or directory (on from rdkit.Chem import Draw)

Cause: RDKit's drawing module depends on X11 rendering libraries that slim Linux and Docker images do not include.

Fix: Run apt-get update && apt-get install -y --no-install-recommends libxrender1 libxext6 libexpat1.

pip install rdkit on an Intel Mac installs 2025.9.3, not the latest release

Cause: RDKit on PyPI no longer builds new releases for Intel Macs; the last one is 2025.9.3.

Fix: Use conda install -c conda-forge rdkit when you need a newer release.

Scientify is a cloud computer with research software installed and AI agents such as Codex and Claude Code built in. Describe what you need in one sentence, for example "compute molecular weight, LogP and hydrogen bond donors and acceptors for these compounds and keep the ones that pass Lipinski's rule", and the agent uses the preinstalled RDKit to do the molecule processing and computation, with no software to install and no code to write.

Compared with installing more on your own computer, the cloud computer already has RDKit 2026.09.1 with Open Babel, OpenMM and MDAnalysis in the same environment, and the system libraries for drawing molecules are in place, and runs continue after you close your laptop.

The cloud computer comes with more computing power: CPU and GPU clusters can be called on demand for large-scale scientific computing. Compute is billed by the minutes you actually use, so nothing is wasted.

Cloud computer
4 vCPU · 8 GB
Top configuration, for data processing and small to medium jobs
Callable GPU
96 GB VRAM
Up to an RTX PRO 6000 per GPU; H800 80 GB and up to 8 × A10G also available
Callable CPU
224 cores · 3 TB
Largest spec, for large parallel computations

References

Frequently asked questions

pip or conda for RDKit?

Either. pip install rdkit suits Python 3.10+ on Linux, Windows and Apple silicon Macs; use conda-forge on Intel Macs or alongside other conda packages.

What is the difference between rdkit and rdkit-pypi?

They are the same project. rdkit-pypi is the old PyPI name and is no longer updated; use rdkit.

How do I check that RDKit works?

Run python -c "from rdkit import Chem; print(Chem.MolFromSmiles('CCO').GetNumAtoms())"; it should print 3.

Do cheminformatics with Scientify without setup

Upload your data, describe the computation, and Scientify runs it on a cloud computer that is already set up. New accounts get a free cloud computer and US$5 in credit.