开发者社区> 问答> 正文

我如何解决水蟒上木星的核心错误

我试图打开木星的笔记本,但我有以下信息。 有人知道如何解决这个问题吗? 顺便说一句,我在windows 10上安装了anaconda3 64位。 提前谢谢。

    Traceback (most recent call last):
  File "C:\Anaconda3\lib\site-packages\tornado\web.py", line 1699, in _execute
    result = await result
  File "C:\Anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "C:\Anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\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:\Anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Anaconda3\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\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:\Anaconda3\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Anaconda3\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "C:\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "C:\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
    kernel_name=self.kernel_name
  File "C:\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
    with secure_write(fname) as f:
  File "C:\Anaconda3\lib\contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "C:\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\\K\\AppData\\Roaming\\jupyter\\runtime\\kernel-4a355bda-9e3b-4ec8-af5c-f28225b6efa3.json'

问题来源StackOverflow 地址:/questions/59387188/how-can-i-solve-this-kernal-error-in-jupyter-on-anaconda

展开
收起
kun坤 2019-12-25 21:40:27 490 0
1 条回答
写回答
取消 提交回答
  • 请尝试创建一个新的conda环境。使用以下命令创建conda环境:

    conda create -n <env_name> -c intel python=3.6
    

    使用以下命令激活环境:

    source activate <env_name>
    

    请在此环境中安装所需的软件包。请使用以下命令安装ipykernal:

    conda install ipykernel
    ipython kernel install --name <env_name> --user 
    

    从木星笔记本中选择已安装的ipykernal。 请参考这个链接:https://github.com/jupyter/notebook/issues/2301

    2019-12-25 21:40:34
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
面向失败设计 立即下载
如何实现应用的持续发布 立即下载
如何做小程序性能优化 立即下载