Kris
❤上善若水,人淡如菊❤(2019-09-19 12:00)

ubuntu下 安装 `jupyter notebook` 过程所遇到的一系列问题的解决办法

ubuntu下 安装 jupyter notebook 过程所遇到的一系列问题的解决办法

  • 安装

pip3 install jupyter notebook

  • 安装时并没有遇到什么明显的问题之类的
  • 运行

jupyter notebook

  • 运行时报错
报错信息如下:
File "user/local/bin/jupyter", line 11, in <model>
	sys.exit(main())
......省略
Exception: Jupyter command `jupyter-notebook.ipynb` not found.
解决办法
> cd ~
> cd /root
> sudo vi notebook.ipynb

+ 随便添加一点内容保存

执行以下命令
> jupyter notebook notebook.ipynb --allow-root 

+ 查看是否成功
更改密码
> jupyter notebook password
Enter password:
> *****
Verify password:
> *****

- 然后又报错了,不具体的错误信息如下
FileNotFoundError: [Eror2] No such file or diretory: '/root/.jupyter/jupyter_note_config.json'

+ 解决办法

> python3
> from noteook.auth import passwd
> passwd()
Enter password:
> *****
Verify password:
> *****
> exit()
接下来用浏览器打开http://127.0.0.1:8888(默认端口8888)就可以用了哦!
posted @ 2019-10-12 18:29  Krise777  阅读(520)  评论(0)    收藏  举报