I started to use rdkit and try to implement in Django with postgres. So I installed rdkit in my django virtualenv with pip install rdkit-pypi
and also installed django-rdkit(https://github.com/rdkit/django-rdkit). This command: python3 -c "from rdkit import Chem; print(Chem.MolToMolBlock(Chem.MolFromSmiles('C1CCC1')))"
works fine to me. But when I run migrate, it failed. The error is :
django.db.utils.OperationalError: could not open extension control file "/usr/share/postgresql/12/extension/rdkit.control": No such file or directory
It seems failed to create cartridge rdkit with postgres. Anyone can help me find the problem and solution (better not with Conda, cause I never use it before)? Thank you very much!