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