PermissionError:[Errno 13]带有代理的Windows 10上的Jupyter Notebook权限被拒绝

时间:2019-10-17 19:54:48

标签: python-3.x jupyter-notebook anaconda

我正在尝试在Windows10上使用带有Python 3.7的jupyter笔记本进行工作,并且在我的办公室网络代理后面运行。直到几天前,我都可以正常运行笔记本电脑。现在,它一直显示每次打开笔记本时内核已死。我得到的错误是具体的:

enter image description here

  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\web.py", line 1699, in _execute
    result = await result
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 88, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
    kernel_name=self.kernel_name
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
    with secure_write(fname) as f:
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "C:\Users\shreeya.mody\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\connect.py", line 102, in secure_write
    with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\shreeya.mody\\AppData\\Roaming\\jupyter\\runtime\\kernel-0068da95-ca03-4be1-b2c0-4814f6f887f3.json'

我尝试过的事情

  • 我已经用尽了所有在线解决方案,但到目前为止,对我来说没有任何作用

  • 已检查文件权限。对我来说看起来正确

  • 多次卸载并重新安装了Anaconda

  • 在工作VM上安装了anaconda以复制该错误,但是在该虚拟机上运行正常,这使我认为该错误与我无法指向的内核文件有关。

  • 从Anaconda Prompt启动笔记本

我想在本地计算机上使用Jupyter笔记本工作,但没有找到适合我的解决方案。

1 个答案:

答案 0 :(得分:0)

注释帮助中的命令行命令:

conda clean -tipsy
conda uninstall jupyter
conda install jupyter

但是在行之后,conda环境几乎完全是空的。就我而言,我需要安装numpy和pandas库。