On Sat, Aug 4, 2012 at 6:01 PM, Surfcast23 <
surfc...@gmail.com> wrote:
>
>
> Hi All,
> I downloaded the StatsModels source from
>
http://pypi.python.org/pypi/statsmodels#downloads and untarred to
>
> /usr/local/lib/python2.7/dist-packages
You don't want to untar the source here. You'll want to use some other
directory.
>
> per the documentation at
>
http://statsmodels.sourceforge.net/devel/install.html did this
>
> sudo python setup.py install
>
> It installed, but when I try to import
>
> import statsmodels.api as sm
>
> I get the following error
>
> Traceback (most recent call last):
> File "/home/Astrophysics/Histogram_Fast.py", line 6, in <module>
> import statsmodels.api as sm
> ImportError: No module named statsmodels.api
>
> I read a few post that have had a similar problem and checked that
> setuptools was installed and it was also in
>
> /usr/local/lib/python2.7/dist-packages
>
> Running
> numpy 1.6, scipy 0.9.0, pandas 0.8.2
>
> I'm kinda at a loss on this and would appriceate any help Thank you!
>
Try untarring in a different directory. Then install as you were. Then
from some other directory (not where you untarred statsmodels) could
you try to import again?
>
>
>