[Python] ImportError: No module named statsmodels

Discussão em 'Python' iniciado por Stack, Dezembro 19, 2024.

  1. Stack

    Stack Membro Participativo

    I downloaded the StatsModels source from this location.

    Then untarred to

    /usr/local/lib/python2.7/dist-packages


    and per this documentation, 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 with a similar problem and checked that setuptools was installed and it was also in

    /usr/local/lib/python2.7/dist-packages


    I'm kinda of lost on this and would appreciate any help...

    I am also running

    numpy 1.6


    so thats not the problem.

    Continue reading...

Compartilhe esta Página