1.输入 jupyter notebook --generate-config --allow-root 会出现配置文件的位置 2.打开配置文件 gedit /home/zdx/.jupyter/jupyter_notebook_config.py 3.找到#c.NotebookApp.allow_root = False,将其修改为 c.NotebookApp.allow_root =True 保持,重新输入jupyter notebook END