On Thu, May 9, 2013 at 7:30 PM, Beth <
tech...@gmail.com> wrote:
> Hi, I'm new to statsmodels (but not to Python), and I'm having a hard time
> installing the module. I'm working on Ubuntu Server 12.10 with no access to
> the internet (but it does have access to a local repository), so I can't use
> pip or easy_install.
>
> I installed the package 'python-scikits.statsmodels', and it seemed like it
> installed successfully. But when I tried "import statsmodels" or "import
> statsmodels.api", I get:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named statsmodels
>
> I also downloaded the source, uninstalled the Ubuntu package, and tried
> installing it that way with the same result. I have seen other Google
> answers for this problem, but they usually involve multiple python versions
> - there is only one version of python on this computer, Python 2.7.3.
>
> Are there any things I could check or other things I could try? Keep in mind
> this computer has no direct access to the internet.
>
This ubuntu package is very old. The import for this would be
import scikits.statsmodels as sm
HOWEVER, I *highly* recommend obtaining a newer version of the source
from github and installing it. Then your import will work as you
tried.
https://github.com/statsmodels/statsmodels
http://statsmodels.sourceforge.net/devel/install.html
Skipper