Linux下jupyter创建文件:Writing notebook-signing key to /home/gy/.local/share/jupyter/notebook_secret

在Linux(Ubuntu16)下运行jupyter notebook成功,但在new一个python3文件时出现报错:

Writing notebook-signing key to /home/gy/.local/share/jupyter/notebook_secret

即未获得运行相关文件的权限。

解决方案:

sudo chmod 777 ~/.local/share/jupyter
cd ~/.local/share/jupyter
ls
sudo chmod 777 runtime
cd runtime
ls

重新运行jupyter,创建python文件成功

你可能感兴趣的:(Linux)