Error al ejecutar `jupyter notebook` (No such file or directory)

Cuando ejecuto jupyter notebook en mi entorno virtual en Arch Linux, se produce el siguiente error.

Error al ejecutar el comando Jupyter 'notebook': [Errno 2] No such file or directory.

Mi versión de python es 3.6, y mi versión de jupyter es 4.3.0

He buscado mucho en Google, pero no he encontrado nada relacionado con este problema.

Gracias de antemano.

Solución

Me parece que la instalación se ha estropeado de alguna manera. Intenta ejecutarlo:

# For Python 2
pip install --upgrade --force-reinstall --no-cache-dir jupyter
# For Python 3
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

Esto debería reinstalar todo desde PyPi. Esto debería resolver el problema ya que creo que ejecutar pip install "ipython[notebook]" desordenó las cosas.

Comentarios (10)

Utilice el siguiente comando y si está utilizando pip3 reemplace pip por pip3

pip install --upgrade --force-reinstall jupyter

Esto funcionó para mí.

Comentarios (3)

Ya que tanto pip como pip3.6 fueron instalados y pip install --upgrade --force-reinstall jupyter estaba fallando, así que usé

pip3.6 install --upgrade --force-reinstall jupyter

y me funcionó. Ejecutar jupyter notebook también funcionó después de esta instalación.

Comentarios (0)