Instalación del portátil Jupyter


15

¿Es posible instalar Jupyter Notebook a través de apt-get install? Por ejemplo, podemos instalar numpy usando apt-get install python-numpy.

Respuestas:


26

Ubuntu 18.04 y posterior

Abra la terminal y escriba:

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

Para iniciar el servidor portátil, ejecute el siguiente comando:

jupyter notebook

Debería ver Jupyter Notebook abierto en su navegador web.


Ubuntu 17.04 y 17.10

En Ubuntu 17.04 y versiones posteriores, Jupyter Notebook está disponible en los repositorios predeterminados de Ubuntu y se puede instalar rápida y fácilmente con apt. Abra la terminal y escriba:

sudo apt install jupyter-notebook jupyter-core python-ipykernel 

python-ipykernel es necesario para ejecutar programas de Python 2.x en Jupyter Notebook, que de lo contrario solo admite Python 3.x.

Para iniciar el servidor portátil, ejecute el siguiente comando:

jupyter notebook

Debería ver Jupyter Notebook abierto en su navegador web

Ubuntu 16.04 y anterior

Google Colaboratory es el entorno gratuito de portátiles Jupyter de Google que no requiere configuración y se ejecuta completamente en la nube.


1
Recibo el siguiente error: $jupyter notebookError al ejecutar el comando 'notebook' de Jupyter: [Errno 2] No existe tal archivo o directorio
Boba Fit

El comando jupyter-troubleshootlo ayudará a solucionar este problema.
karel

1
Eliminé muchos paquetes de Python y los reinstalé. Ahora funciona, pero no sé por qué. Pero eso está bien para mí. Gracias.
Boba Fit

También necesita apt-get install jupyter-notebook, como se sugiere aquí: stackoverflow.com/questions/42648610/…
Felix

10

Lo instalé usando

pip install jupyter

( pip3 si Python3 está instalado; también, asegúrese de tener acceso de root, es decir, conectado a la terminal como root @ ... )

y para dependencias de python

apt-get install build-essential python3-dev

En el escritorio ubuntu 14.04.3 LTS. Estoy en python3.


¿Jupyter no se incluye en los repositorios de Ubuntu?
karfai

@EdwardSiew. No lo creo. Estaba siguiendo una de las sesiones de entrenamiento ... también mencionaron instalarlo solo de esta manera.
Ashu

¿Qué pasa si no tenemos acceso de root?
AVINASH ANAND

1
@AVINASHANAND probablemente un año más tarde inútil, pero tal vez esto : pip install --user pkg_name.
Hendy

0

No parece posible usar solo apt-get.

apt-file find jupyter ## returns no results

Para 16.04:

sudo apt-get install python-pip
pip install --upgrade pip ## secret sauce -- pip fails otherwise
sudo pip install jupyter

entonces

jupyter notebook

Reemplace 'pip' con 'pip3' para usar con Python3.


0

Instalarlo usando

sudo -H pip install jupyter

Una vez completada la instalación, use el siguiente comando

jupyter notebook

0

Según la recomendación oficial aquí , deberíamos usar:

python -m pip install jupyter
python3 -m pip install jupyter

Después de este comando y todo lo anterior, tuve un problema con el error de permiso. Para resolverlo debemos usar el siguiente comando:

python -m pip install jupyter --user
python3 -m pip install jupyter --user

Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.