I'm new in python and have this problem. I have install Pandas, Numpy, Scipy, and I install Stats Models with apt-get install python-statsmodels, but when I try to use:
import statsmodels.api as sm
But I have this problem:
ImportError Traceback (most recent call last)
<ipython-input-1-6030a6549dc0> in <module>()
----> 1 import statsmodels.api as sm
ImportError: No module named statsmodels.api
Why??
On Ubuntu 12.04, statsmodels is installed through scikits.
Hence:
import scikits.statsmodels.api as sm
from statsmodels import api as sm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With