无法在conda环境中运行jupyter笔记本电脑

时间:2020-11-09 09:50:39

标签: python jupyter-notebook anaconda

我正在尝试从conda环境运行jupyter Notebook。

这就是我在做的

conda create --name myenv
conda activate myenv
jupyter notebook

在此浏览器中,打开页面http://localhost:8888/tree/,但是如果我尝试打开笔记本,则会显示此消息

enter image description here

以及以下错误

PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/nbconvert/templates/html/conf.json'

2 个答案:

答案 0 :(得分:0)

通过在地址栏中键入cmd,尝试在要创建笔记本的目录中打开命令提示符。这应该有助于避免此错误。

答案 1 :(得分:0)

您可以尝试将这些文件的权限手动更改为 suggested on the nbconvert issue tracker。转到 /usr/locall/share/jupyter/ 并运行以下命令

# change the permissions on the directories to group, other read and execute
$ find ./ -type d -exec chmod go+rx {} \;enter code here

# change all the other files to group, other read
$ find ./ -type f -exec chmod  go+r {} \;
    
# change all the executables to group, other execute
$ find ./ -type f -perm -100 -exec chmod go+x {} \;