Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8365059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:34:21+00:00 2026-06-09T12:34:21+00:00

I downloaded the StatsModels source from this location . Then untarred to /usr/local/lib/python2.7/dist-packages and

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:34:22+00:00Added an answer on June 9, 2026 at 12:34 pm
    • you shouldn’t untar it to /usr/local/lib/python2.7/dist-packages (you could use any temporary directory)
    • you might have used by mistake a different python executable e.g., /usr/bin/python instead of the one corresponding to /usr/local/lib/python2.7

    You should use pip corresponding to a desired python version (use python -V to check the version) to install it:

    $ python -m pip install statsmodels 
    

    It would allow you to upgrade/uninstall it easily.

    Don’t install as a root to avoid the risk of messing with system python installation by accident. You could use --user option or virtualenv instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Downloaded the WCF REST Template from this location. The default response format is XML,
Downloaded Reachability from Apple, using this method to check for an active connection: -(BOOL)isReachable{
I downloaded HTTP::Daemon::SSL for Strawberry Perl 5.10 from CPAN and ran this example: use
I downloaded FileHelpers from nuget but I am not sure if this feature does
I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
Downloaded: Java EE Eclipse Indigo EE mySQL 5.5 From this point I have no
I downloaded the source code to this project: SilverVNC - a VNC Viewer with
I downloaded a project from TouchMyPixel and when I try to run it with
I downloaded and edited a code that from internet, basically what I want to
I downloaded Mono software (http://xamarin.com/monoforandroid) and the samples from the xamarin website (http://samples.xamarin.com/Android). When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.