启动jupyter报错`Exception: Jupyter command `jupyter-notebook` not found.`

苏丰茂
2023-12-01

执行启动jupyter的命令

jupyter notebook --ip=0.0.0.0 --no-browser --allow-root

产生如下错误,提示spider环境下无法找到jupyter-notebook

Traceback (most recent call last):
  File "/root/anaconda3/envs/spider/bin/jupyter", line 11, in <module>
    sys.exit(main())
  File "/root/anaconda3/envs/spider/lib/python3.8/site-packages/jupyter_core/command.py", line 247, in main
    command = _jupyter_abspath(subcommand)
  File "/root/anaconda3/envs/spider/lib/python3.8/site-packages/jupyter_core/command.py", line 133, in _jupyter_abspath
    raise Exception(
Exception: Jupyter command `jupyter-notebook` not found.

解决方案

  • 重装jupyter notebook
  • pip install jupyter notebook
 类似资料: