#831·dowhy

cannot import name 'CausalIdentifier' from 'dowhy.causal_identifier'

Author: salmachaiebCreated Jan 26, 2023Updated Sep 9, 2026
Labelsbug

After installing the DoWhy in Anaconda (conda install -c conda-forge dowhy) I can see it's version in pip list confirming it was installed. However, when I enter python prompt and try to run:

from dowhy import CausalModel

I get the following error:

ImportError: cannot import name 'CausalIdentifier' from 'dowhy.causal_identifier' (C:\ProgramData\Anaconda3\lib\site-packages\dowhy\causal_identifier_init_.py)

I've already tried conda update --all and conda config --set channel_priority false and I get the same error.