[Ubuntu16.04]Anaconda下运行jupyter notebook出现Running as root is not recommended.

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


猜你喜欢

转载自blog.csdn.net/zdx1996/article/details/88122743
今日推荐