【问题标题】:Unable to run jupyter notebook in a conda enviroment无法在 conda 环境中运行 jupyter notebook
【发布时间】:2023-03-16 16:03:01
【问题描述】:

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

这就是我正在做的事情

conda create --name myenv
conda activate myenv
jupyter notebook

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

还有以下错误

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

【问题讨论】:

    标签: python jupyter-notebook anaconda


    【解决方案1】:

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

    【讨论】:

    • 您是否假设 OP 在 Windows 平台上?
    【解决方案2】:

    您可以尝试将这些文件的权限手动更改为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 {} \;
    

    【讨论】:

      猜你喜欢
      • 2019-06-06
      • 1970-01-01
      • 2020-04-03
      • 2019-03-04
      • 1970-01-01
      • 2017-01-28
      相关资源
      最近更新 更多