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 8749723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:44:33+00:00 2026-06-13T12:44:33+00:00

I installed igraph for python 2.6 on OSX 10.7, but I cannot import igraph

  • 0

I installed igraph for python 2.6 on OSX 10.7, but I cannot import igraph library.

It shows a import error:no module name igraph.

I have no idea. Please help me out.

Thanks.

  • 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-13T12:44:34+00:00Added an answer on June 13, 2026 at 12:44 pm

    However, I cannot run code with python. I make a code, and tried to run, such as, ‘python ex.py’

    OK, even though you didn’t answer most of my questions, I’m pretty sure I can guess your problem. Your question title is “I cannot import igraph on python 2.6 after installation”, but you’re not trying to import it on python 2.6, you’re trying on 2.7.

    $ python
    Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
    [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import igraph
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named igraph
    >>>
    
    $ python2.6
    Python 2.6.7 (r267:88850, Jun 20 2012, 16:23:38) 
    [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import igraph
    >>>
    

    See the difference? OS X 10.7 (and 10.8) comes with three versions of Python: 2.5, 2.6, and 2.7. They’re entirely independent installations, so when you installed igraph for Python 2.6, that didn’t install it for your 2.5 or 2.7 installations.

    The default, the one you get when you just run python, is 2.7. If you want a specific version, you have to run python2.6 instead.

    So, you either need to run python2.6, or install igraph for 2.7.

    As a side note, if you’ve installed any third-party Python installations, you’re going to get yourself even more confused, so please, don’t do that (or uninstall if you already have) until you really know what you’re doing.

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

Sidebar

Related Questions

I installed igraph for python in my mac but I can't import it. First
Apparently libigraph and python-igraph are the only packages on earth that can't be installed
I installed python-igraph 0.5.4 and igraph 0.5.4 (also tested 0.6) from source on a
I installed the playframework fbconnect module (version 0.6). I keep getting the following error.
I installed subclipse in eclipse, but I get an error message Expected format '3'
i installed django cms correctly but it says no module named menu_pool do i
Installed both SonataMediaBundle, SonataNewsBundle and SonataAdminBundle (and much more but these matter). When posting
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed Python 3.x (besides Python 2.x on Ubuntu) and slowly started to pair
I installed CLisp today on my Win7 PC. Please don't criticize my environment choices,

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.