Reputation: 1531
am using Mac El Capitan, I need to install iPython and have to use iPython notebook
I use
$ pip install ipython
to install the ipython, but it return me
Requirement already satisfied (use --upgrade to upgrade): ipython in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): traitlets in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): decorator in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): gnureadline in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): appnope in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pexpect in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in /Library/Python/2.7/site-packages (from traitlets->ipython)
Requirement already satisfied (use --upgrade to upgrade): path.py in /Library/Python/2.7/site-packages (from pickleshare->ipython)
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /Library/Python/2.7/site-packages (from pexpect->ipython)
abhi ~ $ ipython
-bash: ipython: command not found
any idea what am doing wrong, or what should I do now?
I tried this on my IDLE
>>> try:
import ipython
print "imported"
except :
print "not installed"
it says not installed.
Upvotes: 1
Views: 2691
Reputation: 2446
Had similar issues when trying to install ipython and jupyter on my mac (El Capitan v10.11.6)
Tried various combinations including sudo -H
, --ignore <whatever people suggested>
etc.
The only thing that worked for me:
pip install --user ipython
pip install --user jupyter
You would also need to add your 'user python modules' to your path. One way is using nano to edit your .bash_profile:
export PATH=$PATH:/Users/YOUR USER ID/Library/Python/2.7/bin
Then just open a new terminal or use source
command to apply it in the open terminal.
You can find a different approach here.
Hope it helps!
Upvotes: 1