执行Jupyter命令“notebook”时出错:[Errno 2]没有这样的文件或目录,如何解决?

2024-04-18 08:34:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用such way在我的Ubuntu 18.04/Python 3.6计算机上安装jupyter笔记本,但是,当我试图使用jupyter notebook来执行笔记本时,发生了以下错误:

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

如果我使用jupyter -h,将打印以下信息:

usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
               [--paths] [--json]
               [subcommand]

Jupyter: Interactive Computing

positional arguments:
  subcommand     the subcommand to launch

optional arguments:
  -h, --help     show this help message and exit
  --version      show the jupyter command's version and exit
  --config-dir   show Jupyter config dir
  --data-dir     show Jupyter data dir
  --runtime-dir  show Jupyter runtime dir
  --paths        show all Jupyter paths. Add --json for machine-readable
                 format.
  --json         output paths as machine-readable json

Available subcommands: migrate troubleshoot

我有很多谷歌,但找不到解决方案。我尝试了下面所有的答案this question,没有一个能解决我的问题。有人能帮我吗?非常感谢


Tags: configjsondataversionshowdir笔记本jupyter