建立Python檔案的時候遇到下面的錯誤:
Creating Notebook Failed
An error occurred while creating a new notebook.
Unexpected error while saving file: arma/Untitled.ipynb [Errno 13] Permission denied: ‘/home/wang/.local/share/jupyter/notebook_secret’
解決方案:
修改檔案許可權:
(my_env) wang@ubuntu:~ sudochmod+777.local/share/jupyter/(myenv)wang@ubuntu: sudo chmod +777 .local/share/jupyter/ (my_env) wang@ubuntu:~ cd .local/share/jupyter/
(my_env) wang@ubuntu:~/.local/share/jupyter lsruntime(myenv)wang@ubuntu: /.local/share/jupyter ls runtime (my_env) wang@ubuntu:~/.local/share/jupyter sudo chmod +777 runtime/
(my_env) wang@ubuntu:~/.local/share/jupyter cdruntime/(myenv)wang@ubuntu: /.local/share/jupyter/runtime cd runtime/ (my_env) wang@ubuntu:~/.local/share/jupyter/runtime ls
notebook_cookie_secret
(my_env) wang@ubuntu:~/.local/share/jupyter/runtime sudovinotebookcookiesecret(myenv)wang@ubuntu: /.local/share/