I've recently deleted Anaconda and reinstalled python with brew. I've installed everything according to these instructions.
Python works great, and all packages I've tested so far also work. I've got ipython installed, but trying to launch it from the terminal gives:
-bash: ipython: command not found
I've located the installation at:
/usr/local/lib/python2.7/site-packages/ipython
Following older related questions, I've tried adding this path to .bash_profile but got:
-bash: :/usr/local/lib/python2.7/site-packages/ipython: No such file or directory
Whenever terminal starts.
Some more info: Anaconda installed an removed, El-Capitan 10.11.2, python 2.7.
Any help would be much appreciated!
EDIT: added some more info to @cel request:
echo $PATH
gives:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Library/TeX/texbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin
which -a python
gives:
/usr/local/bin/python
and /usr/bin/python
.
EDIT: added the output of python -m pip install ipython
to cel's request:
Requirement already satisfied (use --upgrade to upgrade): ipython in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): traitlets in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): decorator in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): gnureadline in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): appnope in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pexpect in /usr/local/lib/python2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in /usr/local/lib/python2.7/site-packages (from traitlets->ipython)
Requirement already satisfied (use --upgrade to upgrade): path.py in /usr/local/lib/python2.7/site-packages (from pickleshare->ipython)
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /usr/local/lib/python2.7/site-packages (from pexpect->ipython)
/usr/local/lib/python2.7/site-packages/ipython
from your path again. This is not how thePATH
variable works. After that, please restart your terminal, and add the output ofecho $PATH
andwhich -a python
to your question.echo $PATH
gives:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Library/TeX/texbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin
andwhich -a python
gives:/usr/local/bin/python
and/usr/bin/python
.python -m pip install ipython
, after that you should be able to start ipython from command line.Requirement already satisfied
(I can attach if you think it might help), after which I got the same-bash: ipython: command not found
from before...