I'm trying to get ipython working in Mac OS 10.10.
problem:
$ ipython
returns
-bash: ipython: command not found
context:
I'm running python2.7 on MacOS 10.10. I installed python via brew. Some info:
which python
=
/usr/local/bin/python
brew info python
=
python: stable 2.7.10 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org
/usr/local/Cellar/python/2.7.10_2 (4977 files, 77M) *
To install ipython I ran
pip install ipython[all]
so... pip show ipython =
---
Metadata-Version: 2.0
Name: ipython
Version: 4.0.0
Summary: IPython: Productive Interactive Computing
Home-page: http://ipython.org
Author: The IPython Development Team
Author-email: [email protected]
License: BSD
Location: /usr/local/lib/python2.7/site-packages
Requires: traitlets, pickleshare, simplegeneric, decorator, gnureadline, appnope, pexpect
finally, echo $PATH =
/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/usr/local/lib/python2.7/site-packages:/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin
Can anyone tell me what I'm doing wrong?
To start a Python interactive session, just open a command-line or terminal and then type in python , or python3 depending on your Python installation, and then hit Enter .
Installing IPython itself Given a properly built Python, the basic interactive IPython shell will work with no external dependencies.
The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is available. However, if you want to use a kernel with a different version of Python, or in a virtualenv or conda environment, you'll need to install that manually.
I met the same issue but resolved. You need to make sure install IPython at first via this command on terminal.
$python -m IPython
Then it will show this result:
Congratulations! You had IPython in your computer.
Then run this command on terminal.
alias ipython='python -m IPython'
Finally you can try ipython command again.
You can add this command line into ~/.bash_profile file for permanent. It works fine for me.
I was trying to install jupyter with 'pip install jupyter'. http://jupyter.readthedocs.org/en/latest/install.html
Then I got similar error on running ipython. I did try all solutions on Stackoverflow about installing ipython.
At last, I installed Anaconda then run conda install jupyter
.
Now everything works fine.
My environment:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With