Solved! The new version of statsmodels has the problem of importerror: cannot import name ‘factorial’

When the application of statsmodels is updated to the latest scipy version, an ImportError: cannot import name ‘factorial and:
attempts to raise an error and fail to find the reason.
There seems to be a problem with one of the functions in the latest version of SCIPY. The solution is to remove the new version and restore SCIPY to version 1.2
The solution removes the previous version
and installs it with PIP

$ pip install scipy==1.2.0 -i https://pypi.doubanio.com/simple/  --trusted-host pypi.doubanio.com  django

I’m using the image of douban

Read More: