ImportError: cannot import name'ss' is solved perfectly

  • 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#

image

Exquisite stamps in the past: NGS advancement  | statistical advancementpy basics  |  py drawing  |  perl basics  |  R drawing

 

Guess you like

Origin blog.csdn.net/qq_21478261/article/details/113576407