我在配置Jupyter以通过AWS EC2使用它后无法启动Jupyter笔记本。
[ec2-user@ip-123-45-67 ~]$ jupyter notebook
-bash: jupyter: command not found
键入命令"哪个jupyter"one_answers" python"打印出来:
[ec2-user@ip-123-45-67 ~]$ which jupyter
/usr/bin/which: no jupyter in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin)
[ec2-user@ip-123-45-67 ~]$ which python
/usr/bin/python
这就是我的jupyter笔记本配置文件中的内容:
c = get_config()
c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
这仅表示您试图运行脚本的计算机上不存在jupyter
可执行文件。
您应该尝试先安装Jupyter。