更新源 (更新系统)
sudo apt-get update
首先 进行更新 软件包
sudo apt-get upgrade
安装 juypter安装包
sudo pip3 install jupyter
![](https://img.haomeiwen.com/i15545292/957270afa0374609.png)
生成 jupyter 配置文件
jupyter notebook --generate-config
编辑配置文件(小白一个,暂时不会 vi,只能用 nano)
nano ~/.jupyter/jupyter notebook config.py
(1)修改 jupyter (c.NotebookApp.ip)的 ip 为 ‘0.0.0.0’ 或者 "*",代表任意 ip 可访问(记得去掉注释)
(2)修改 open.browser 为false (记得去掉注释)
(3)修改开放端(NotebookApp.port)口为 8888(记得去掉注释)
(4)修改(notebook.notebook_dir)可访问的目录为 pi (/home/pi)用户的目录 (自己树莓派的用户名,一般默认都是 pi
设置 jupyter 的访问密码
jupyter notebook password
启动 jupyterbook
jupyter notebook
启动成功
![](https://img.haomeiwen.com/i15545292/23202ec0977ca507.png)
网友评论