igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph visualization


From: Ahmed Abdeen Hamed
Subject: Re: [igraph] igraph visualization
Date: Sun, 10 Nov 2013 19:56:14 -0500

I am still unable get it to work even though I tried both advice:

The path is: 

PYTHONPATH=/usr/local/lib/python2.7/site-packages

When I try which python is still get the following, which is not the path for the brew

/usr/bin/python

Here is what I have in my .bash_login
PATH="${PATH}:/Users/ahamed/bin:/opt/local/bin:/usr/local/lib/python2.7"
export PATH="${PATH}:/Users/ahamed/bin:/opt/local/bin" 
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_login.pysave

export PATH=$PATH:/Applications/InfiniteGraph/3.1/bin

export PYTHONPATH=/usr/local/lib/python2.7/site-packages
export ECLIPSE_HOME=/Applications/eclipse/
export PATH=$PATH:$ECLIPSE_HOME:$PYTHONPATH
##
# Your previous /Users/ahamedCOM/.bash_login file was backed up as /Users/ahamedCOM/.bash_login.macports-saved_2013-11-08_at_22:21:22
##


Is there anything fishy here?

-Ahmed











On Sun, Nov 10, 2013 at 1:25 PM, Tamás Nepusz <address@hidden> wrote:
FWIW, I managed to run “brew install py2cairo” without having to install a brew-based Python. I simply added “/usr/local/lib/python2.7/site-packages” on my Python path and it imports the cairo module just fine.

This seems to be confirmed by Homebrew’s wiki:

If you have a brewed python, then the bindings are installed for that one. But if you don't have a brewed Python, Homebrew basically just uses the first python (and python-config) in your PATH. Check that by which python.

https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python#homebrew-provided-python-bindings

So, basically, I think you simply have to add /usr/local/lib/python2.7/site-packages to your PYTHONPATH and you should be fine.

— 
T.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]