Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install python on mac OS X 10.7.5. I installed it from MacPort and I think before I did, I screwed up $PATH somehow. It seems to install fine but then when I try to run ipython I get

-bash: ipython: command not found.

I thought it had something to do with the path and when I do /bin/echo $PATH I get something that seems really weird to me:

share|improve this question
What exactly do you consider wierd in PATH? – patrix Apr 18 '13 at 13:17

You need to install ipython in addition to python:

$ port search ipython

py-ipython @0.13.2 (python)
An enhanced Interactive Python shell


$ sudo port select --set ipython ipython24

you can then select the version you want.

It ill be installed in

$ type ipython
ipython is /opt/local/bin/ipython

Check that your PATH begins with /opt/local/bin and not with opt/local/bin/ (notice the beginning /)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.