jupyter notebook OSError: [Errno 13] Permission denied: '/run/user/1000/jupyter'

不同用户因为权限问题,不同用户之间不能使用另一个用户的jupyter notebook会报OSError: [Errno 13] Permission denied: ‘/run/user/1000/jupyter’,

解决方法

  1. OSError: [Errno 13] Permission denied: ‘/run/user/1000/jupyter’
    在.bashrc加入export XDG_RUNTIME_DIR="",
    1、vi ~/.bashrc;
    2、在文件中加入export XDG_RUNTIME_DIR=""
    参考:https://github.com/jupyter/notebook/issues/1318
  2. OSError: [Errno 13] Permission denied: ‘/home/hadoop/.local/share/jupyter’
    在终端输入jupyter notebook 报错OSError: [Errno 13] Permission denied: ‘/home/hadoop/.local/share/jupyter’
    1、在家目录输入sudo chown hadoop:hadoop .local/share #hadoop为用户名
    参考:https://github.com/jupyter/notebook/issues/2923

你可能感兴趣的:(jupyter,notebook)