py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
7.01k stars 922 forks source link

ImportError: dowhy is no longer a dependency of the main econml package; install econml[dowhy] or econml[all] to require it, or install dowhy separately to use dowhy from econml #969

Closed Yif18 closed 1 year ago

Yif18 commented 1 year ago

import dowhy import econml.dowhy

est = LinearDML(model_y=GradientBoostingRegressor(), model_t=GradientBoostingRegressor(), featurizer=PolynomialFeatures(degree=2, include_bias=False)) est_dw = est.dowhy.fit(Y, T, X=X, W=W, outcome_names=["log_demand"], treatment_names=["log_price"], feature_names=["income"], confounder_names=confounder_names, inference="statsmodels")

ImportError: dowhy is no longer a dependency of the main econml package; install econml[dowhy] or econml[all] to require it, or install dowhy separately to use dowhy from econml

amit-sharma commented 1 year ago

The error message indicates that dowhy is not installed. you can install dowhy separately. Do you see the message even after installing dowhy?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

Yif18 commented 1 year ago

i have installed dowhy,but the error still exists. I found that this error is related to the version of Python, and it will appear in the latest version of Python

---- Replied Message ---- | From | Amit @.> | | Date | 07/12/2023 19:28 | | To | py-why/dowhy @.> | | Cc | Yif18 @.>, Author @.> | | Subject | Re: [py-why/dowhy] ImportError: dowhy is no longer a dependency of the main econml package; install econml[dowhy] or econml[all] to require it, or install dowhy separately to use dowhy from econml (Issue #969) |

The error message indicates that dowhy is not installed. you can install dowhy separately. Do you see the message even after installing dowhy?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 7 days since being marked as stale.