root用户访问jupyter notebook正常
普通用户访问失败
现象
PermissionError: [Errno 13] Permission denied: '/usr/share/jupyter/nbconvert/templates/conf.json'
或者
PermissionError: [Errno 13] Permission denied: '/opt/anaconda3/share/jupyter/nbconvert/templates/html/conf.json'
解决方法
删除
rm - rvf /usr/share/jupyter
rm -rvf ~/.local/share/jupyter
给html赋权限
chown -R ai:ai html #ai:ai 为你的用户组
chmod -R 777 html
重启jupyter notebook ,打开文件运行正常