天天看点

Permission denied: ‘/opt/anaconda3/envs/xxxxx/share/jupyter/nbconvert/templates/html/conf.json‘

先说一下遇到这个错误的过程

在linux下启动jupyter时,默认使用的是系统的jupyter命令

自己的conda环境也是在系统的目录下的,后来卸载了系统中自己的环境,然后重新安装到自己的

/home/xxxx

的目录下(也就是重新pip安装包时,添加

--user

这时候使用

.local/bin/jupyter notebook

启动遇到上面的问题

解决方案

cd /opt/anaconda3/envs/xxxxx/share

然后

rm -rf Jupyter

再次启动 完美解决!!

还得感谢stackoverflow.com