ImportError: Ipython requer Python versão 2.7 ou 3.3 ou superior

ImportError: Ipython requer Python versão 2.7 ou 3.3 ou superior

Estou tentando usar o notebook ipython. Mas quando executo o notebook ipython, ocorre o erro abaixo. Eu tenho ipython 2.7 e 3.3. Mas mesmo assim não consegue detectar o ipython 2.7. Como posso anexar o caminho sem excluir os caminhos anteriores.

ihn@cri8:/home/ihn/packages$ ipython notebook
Traceback (most recent call last):
 File "/usr/local/bin/ipython", line 7, in <module>
from IPython import start_ipython
 File "/usr/local/lib/python3.2/dist-packages/IPython/__init__.py", line 33, in <module>
raise ImportError('IPython requires Python version 2.7 or 3.3 or above.')
ImportError: IPython requires Python version 2.7 or 3.3 or above.

se eu digitar

$ which python
/usr/bin/python

$ python -V
Python 2.7.3

Posso usar EXPORT = caminho $ caminho. Mas, nesse caso, ele excluirá meus caminhos anteriores no arquivo bashrc. Como posso acrescentar esse caminho nele?

Responder1

Ubuntu 20.04 e posterior

Abra o terminal e digite:

sudo apt instalar jupyter-notebook jupyter

Ubuntu 18.04 e posterior

sudo apt instalar python3-notebook jupyter jupyter-core python-ipykernel

Para iniciar o servidor do notebook execute o seguinte comando:

jupyter notebook

Você deverá ver o Jupyter Notebook aberto em seu navegador.


Abra o terminal e digite:

sudo apt-get install ipython3 ipython3-notebook  

Para iniciar o tipo de notebook HTML interativo do Python 3:

ipython3 notebook  

Para iniciar o notebook Python com sistema de plotagem baseado em Python embutido (python-matplotlib):

ipython notebook --pylab  

ou para Python 3 e python3-matplotlib:

ipython3 notebook --pylab

informação relacionada