pip - ipython: command not found on OSX -


i installed python scientific environment (numpy, scipy, matplotlib, pandas, ipython) while ago on osx using brew , either pip or easy_install (or 2 of them, don't remember). if try run ipython get:

-> ipython -bash: ipython: command not found 

then did:

-> sudo find . -iname "*ipython*" password: find: ./dev/fd/3: not directory find: ./dev/fd/4: not directory ./users/jfk/.ipython ./usr/local/cellar/matplotlib/1.2.0/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.py ./usr/local/cellar/matplotlib/1.2.0/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.pyc ./usr/local/cellar/matplotlib/1.2.0/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.py ./usr/local/cellar/matplotlib/1.2.0/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.pyc ./usr/local/cellar/matplotlib/1.2.1/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.py ./usr/local/cellar/matplotlib/1.2.1/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.pyc ./usr/local/cellar/matplotlib/1.2.1/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.py ./usr/local/cellar/matplotlib/1.2.1/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.pyc ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython/examples/core/ipython-get-history.py ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython/examples/core/ipython-qtconsole.desktop ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython/examples/core/ipython-sh.desktop ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython/examples/core/ipython.desktop ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/doc/ipython/examples/core/ipython_here_shell_extension.reg ./usr/local/cellar/python/2.7.4/frameworks/python.framework/versions/2.7/share/man/man1/ipython.1 ./usr/local/lib/python2.7/site-packages/ipython ./usr/local/lib/python2.7/site-packages/ipython/config/profile/cluster/ipython_config.py ./usr/local/lib/python2.7/site-packages/ipython/config/profile/cluster/ipython_config.pyc ./usr/local/lib/python2.7/site-packages/ipython/config/profile/math/ipython_config.py ./usr/local/lib/python2.7/site-packages/ipython/config/profile/math/ipython_config.pyc ./usr/local/lib/python2.7/site-packages/ipython/config/profile/pysh/ipython_config.py ./usr/local/lib/python2.7/site-packages/ipython/config/profile/pysh/ipython_config.pyc ./usr/local/lib/python2.7/site-packages/ipython/config/profile/sympy/ipython_config.py ./usr/local/lib/python2.7/site-packages/ipython/config/profile/sympy/ipython_config.pyc ./usr/local/lib/python2.7/site-packages/ipython/frontend/html/notebook/static/codemirror/readme-ipython.rst ./usr/local/lib/python2.7/site-packages/ipython/frontend/html/notebook/static/codemirror/theme/ipython.css ./usr/local/lib/python2.7/site-packages/ipython/frontend/qt/console/ipython_widget.py ./usr/local/lib/python2.7/site-packages/ipython/frontend/qt/console/ipython_widget.pyc ./usr/local/lib/python2.7/site-packages/ipython/frontend/qt/console/resources/icon/ipythonconsole.svg ./usr/local/lib/python2.7/site-packages/ipython/frontend/qt/console/rich_ipython_widget.py ./usr/local/lib/python2.7/site-packages/ipython/frontend/qt/console/rich_ipython_widget.pyc ./usr/local/lib/python2.7/site-packages/ipython-0.13.2-py2.7.egg-info ./usr/local/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.py ./usr/local/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_console_highlighting.pyc ./usr/local/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.py ./usr/local/lib/python2.7/site-packages/matplotlib/sphinxext/ipython_directive.pyc ./usr/local/share/python/ipython 

i surprised not see /bin directory.

then tried reinstall ipython

-> pip install ipython requirement satisfied (use --upgrade upgrade): ipython in /usr/local/lib/python2.7/site-packages cleaning up... 

this confusing. idea welcome.

create .pydistutils.cfg in $home following contents

[global] verbose=1  [install] install-scripts=$home/bin  [easy_install] install-scripts=$home/bin 

run

pip install -u --user --force ipython   

have @ https://github.com/pypa/pip/issues/426


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -