Closed caizd1994 closed 3 years ago
Hi @caizd1994, thanks for using causalml
and reporting this. In our most recent requiremnt.txt we are using scipy==1.14.1
because of the tensorflow requirement. I wasn't able to reproduce this bug, as shown in the below screenshot.
Could you try to remove any cached or previous installation of causalml and install it again?
# from somewhere not in the causalml source directory
$ pip uninstall causalml
$ pip install --no-cache-dir -U causalml
Please let me know if it helps.
when
from causalml.inference.meta import BaseXRegressor
show this error
ImportError Traceback (most recent call last)
Hi, it seems this problem actually coming from statsmodels
. I also saw similar issue here been discussed. What's the statsmodels
version you are using? Could you upgrade to statsmodels>=0.9.0
? Thanks!
Hi @caizd1994, just want to check-in to see if you still have this issue? Thanks!
forced upgrade of statsmodels fixes this issue and installing a 1.4.0 version of scipy too
from causalml.inference.meta import BaseSRegressor, BaseTRegressor, BaseXRegressor, BaseRRegressor ----> 7 from scipy.misc import factorial
ImportError: cannot import name 'factorial
requirement.txt ask scipy==1.4.0 but where scipy >= 1.3 factorial is not in misc
Expected behavior update the package