Eu tive problemas para instalar o Ipython, mas felizmente eu tentei a versão 3.2.1 e tudo correu bem e eu posso rodar o Ipython, mas eu ainda não consigo rodar o Ipython notebook.
$ ipython
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
Type "copyright", "credits" or "license" for more information.
IPython 3.2.1 -- An enhanced Interactive Python.
$ ipython notebook
...
ImportError: IPython.html requires pyzmq >= 13
Eu tentei instalar o pyzmq e recebi o seguinte erro:
$ sudo pip install -U pyzmq
...
Warning: Failed to build or run libzmq detection test.
If you expected pyzmq to link against an installed libzmq, please check to make sure:
* You have a C compiler installed
* A development version of Python is installed (including headers)
* A development version of ZMQ >= 2.1.4 is installed (including headers)
* If ZMQ is not in a default location, supply the argument --zmq=<path>
* If you did recently install ZMQ to a default location,
try rebuilding the ld cache with 'sudo ldconfig'
or specify zmq's location with '--zmq=/usr/local'
...
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Eu copiei apenas o erro porque existem centenas de linhas executadas pelo shell.
Informação:
Versão 2.7.9 de Python
Eu tenho Anaconda, (não sei se muda alguma coisa)
Ubuntu 15.04
Eu tenho o Canopy (IDE do Python) instalado (não sei se ele muda alguma coisa)
EDIT: Eu estava tentando algumas outras coisas, e então eu decidi tentar instalar o jupyter. Notei que, mesmo após uma instalação limpa (com pip), não consegui executar o jupyter.
$ jupyter notebook
jupyter : command not found.
mas agora posso executar:
~$ ipython notebook
[I 00:33:30.336 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 00:33:30.386 NotebookApp] Serving notebooks from local directory: /home/renanpc
[I 00:33:30.386 NotebookApp] 0 active kernels
[I 00:33:30.386 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 00:33:30.386 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
(process:11118): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
^C[I 00:37:24.548 NotebookApp] interrupted
Serving notebooks from local directory: /home/renanpc
0 active kernels
The IPython Notebook is running at: http://localhost:8888/
e o Notebook funciona muito bem. Estou muito muito confuso com esta situação.