When using Python version 3.9 and later,
from causalgraphicalmodels import CausalGraphicalModel
results in
ImportError: cannot import name 'Iterable' from 'collections'
The following fix is described here:
try:
# Python <= 3.9
from collections import Iterable
except ImportError:
# Python > 3.9
from collections.abc import Iterable
When using Python version 3.9 and later,
from causalgraphicalmodels import CausalGraphicalModelresults in
ImportError: cannot import name 'Iterable' from 'collections'The following fix is described here: