zoukankan      html  css  js  c++  java
  • 今天遇到的“OS ERROR, permission denied” 如何解决的

    lirh@ubuntu:~$ jupyter notebook
    Traceback (most recent call last):
    File "/home/lirh/.local/lib/python3.5/site-packages/traitlets/traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
    KeyError: 'runtime_dir'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/usr/local/bin/jupyter-notebook", line 11, in <module>
    sys.exit(main())
    File "/home/lirh/.local/lib/python3.5/site-packages/jupyter_core/application.py", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
    File "/home/lirh/.local/lib/python3.5/site-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
    File "<decorator-gen-7>", line 2, in initialize
    File "/home/lirh/.local/lib/python3.5/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
    File "/home/lirh/.local/lib/python3.5/site-packages/notebook/notebookapp.py", line 1140, in initialize
    self.init_configurables()
    File "/home/lirh/.local/lib/python3.5/site-packages/notebook/notebookapp.py", line 901, in init_configurables
    connection_dir=self.runtime_dir,
    File "/home/lirh/.local/lib/python3.5/site-packages/traitlets/traitlets.py", line 556, in __get__
    return self.get(obj, cls)
    File "/home/lirh/.local/lib/python3.5/site-packages/traitlets/traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
    File "/home/lirh/.local/lib/python3.5/site-packages/jupyter_core/application.py", line 99, in _runtime_dir_default
    ensure_dir_exists(rd, mode=0o700)
    File "/home/lirh/.local/lib/python3.5/site-packages/ipython_genutils/path.py", line 167, in ensure_dir_exists
    os.makedirs(path, mode=mode)
    File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
    File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
    File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
    File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
    PermissionError: [Errno 13] Permission denied: '/home/deploy'

    只要把命令改成:

    lirh@ubuntu:~$ sudo jupyter notebook

    就可以成功运行

  • 相关阅读:
    在Oracle中添加用户 赋权 修改暗码 解锁
    Ubuntu Linux 8.04 Vsftp 假造用户设置
    用一个实例讲解DB2数据库游标轮回的成果
    解说Oracle数据库自动增长列的完成过程
    MSN登录错误“80072efd”解决办法
    再学 GDI+[61]: 路径画刷(1) SetCenterColor、SetSurroundColors
    WinAPI: 测试 BitBlt
    两个 CopyRect
    再学 GDI+[58]: 路径 保存与读取路径数据
    再学 GDI+[62]: 路径画刷(2) SetCenterPoint、GetCenterPoint
  • 原文地址:https://www.cnblogs.com/quant-lee/p/6561671.html
Copyright © 2011-2022 走看看