title: ImportError: cannot import name 'factorial'
body: <p>I want to use a logit model and trying to import statsmodels library. 
  My Version: Python 3.6.8</p>
  
  <p>The best suggestion I got is to downgrade scipy but unclear how to and to what version should I downgrade. Please help how to resolve. 
  <a href="https://github.com/statsmodels/statsmodels/issues/5747" rel="noreferrer">https://github.com/statsmodels/statsmodels/issues/5747</a></p>
  
  <p><code>import statsmodels.formula.api as smf</code></p>
  
  <p></p>
  
  <pre><code>ImportError                               Traceback (most recent call last)
  &lt;ipython-input-52-f897a2d817de&gt; in &lt;module&gt;
  ----&gt; 1 import statsmodels.formula.api as smf
  
  ~/anaconda3/envs/py36/lib/python3.6/site-packages/statsmodels/formula/api.py in &lt;module&gt;
       13 from statsmodels.robust.robust_linear_model import RLM
       14 rlm = RLM.from_formula
  ---&gt; 15 from statsmodels.discrete.discrete_model import MNLogit
       16 mnlogit = MNLogit.from_formula
       17 from statsmodels.discrete.discrete_model import Logit
  
  ~/anaconda3/envs/py36/lib/python3.6/site-packages/statsmodels/discrete/discrete_model.py in &lt;module&gt;
       43 
       44 from statsmodels.base.l1_slsqp import fit_l1_slsqp
  ---&gt; 45 from statsmodels.distributions import genpoisson_p
       46 
       47 try:
  
  ~/anaconda3/envs/py36/lib/python3.6/site-packages/statsmodels/distributions/__init__.py in &lt;module&gt;
        1 from .empirical_distribution import ECDF, monotone_fn_inverter, StepFunction
  ----&gt; 2 from .edgeworth import ExpandedNormal
        3 from .discrete import genpoisson_p, zipoisson, zigenpoisson, zinegbin
  
  ~/anaconda3/envs/py36/lib/python3.6/site-packages/statsmodels/distributions/edgeworth.py in &lt;module&gt;
        5 import numpy as np
        6 from numpy.polynomial.hermite_e import HermiteE
  ----&gt; 7 from scipy.misc import factorial
        8 from scipy.stats import rv_continuous
        9 import scipy.special as special
  
  ImportError: cannot import name 'factorial'```
  </code></pre>