-
Reason for error
When using statsmodels, due to the incompatibility of statsmodels and scipy versions, the error ImportError: cannot import name'ss' is often reported.
-
Simple and crude solution
pip uninstall statsmodels
pip install statsmodels -i https://pypi.tuna.tsinghua.edu.cn/simple
pip uninstall scipy
pip install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple
You may encounter, ImportError: cannot import name'lstsq', just restart python.
Reference
https://docs.scipy.org/doc/scipy-0.19.1/reference/generated/scipy.stats.ss.html
https://stackoverflow.com/questions/54808727/python-cannot-import-name-ss#
Exquisite stamps in the past: NGS advancement | statistical advancement | py basics | py drawing | perl basics | R drawing