ImportError: cannot import name 'factorial'

前端 未结 5 1447
执笔经年
执笔经年 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:24

    One easy fix I found is editing the .py file. I was getting the same error as the OP while using Dominance analysis. Edited the dominance.py file to have from scipy.special import factorial and it worked. I would think editing the from scipy.misc import factorial line to from scipy.special import factorial in the statsmodel package code in edgeworth.py would do the same job here.

提交回复
热议问题