tutorial run instalar como macos pip ipython homebrew

macos - run - jupyter brew



ipython: comando no encontrado en OSX (2)

Crea .pydistutils.cfg en tu $HOME siguiendo los contenidos

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

correr

pip install -U --user --force ipython

Eche un vistazo a https://github.com/pypa/pip/issues/426

Instalé el entorno científico python (numpy, scipy, matplotlib, pandas, ipython) hace un tiempo en OSX usando brew y pip o easy_install (o los 2 de ellos, no recuerdo). Ahora si intento ejecutar ipython, obtengo:

-> ipython -bash: ipython: command not found

Entonces lo hice:

-> sudo find . -iname "*ipython*" Password: find: ./dev/fd/3: Not a directory find: ./dev/fd/4: Not a 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

Me sorprendió no ver ningún directorio / bin.

Luego traté de reinstalar ipython

-> pip install ipython Requirement already satisfied (use --upgrade to upgrade): ipython in /usr/local/lib/python2.7/site-packages Cleaning up...

Esto es realmente confuso Cualquier idea es bienvenida.


La solución alternativa (al menos para ipython) es agregar estas líneas a ~/.pydistutils.cfg : [install] install-data=/usr/local install-scripts=/usr/local/bin