ImportError: cannot import name 'factorial'

前端 未结 5 1448
执笔经年
执笔经年 2020-12-16 11:46

I want to use a logit model and trying to import statsmodels library. My Version: Python 3.6.8

The best suggestion I got is to downgrade scipy but unclear how to an

5条回答
  •  感动是毒
    2020-12-16 12:32

    !pip install scipy==1.2  --user
    import statsmodels.formula.api as sm
    from statsmodels.formula.api import ols
    from statsmodels.sandbox.regression.predstd import wls_prediction_std`
    

    I still got the following after scipy 1.2 was successfully installed:

    ImportError: cannot import name 'factorial' from 'scipy.misc'
    

提交回复
热议问题