比较来自世界各地的卖家的域名和 IT 服务价格

Kernel 笔记本中的错误 Jupyter 在 Anaconda 2019.03 为了 Python 3.7 在 macOS

我刚安装过 Anaconda 2019.03 为了 macOS 从 Python 3.7 我想用它来编程 Python 3 使用笔记本电脑 Jupyter. 当我跑步时 Jupyter Notebook, 没有什么作用,因为错误 Kernel.

我删掉了 Anaconda 为了 Python 2.7 和 Python 3.7 重新安装之前 /由于单独的问题,我删除并重新安装/, 我认为一些重要的文件 kernel, 我手动删除时可能已被删除 Anaconda. 我认为下面的错误消息显示了 Anaconda 从名为的文件夹开始
anaconda3

里面 root /
/

/, 但在错误消息的最后一行中,它似乎正在寻找我的主文件夹中的东西。 /
myhomefolder

/. 我不太确定如何解释,因为我是新手。


Traceback /most recent call last/:
File "/anaconda3/lib/python3.7/site-packages/tornado/web.py", line 1699, in _execute
result = await result
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 736, in run
yielded = self.gen.throw/*exc_info/ # type: ignore
File "/anaconda3/lib/python3.7/site-packages/notebook/services/sessions/handlers.py", line 73, in post
type=mtype//
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result//
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 736, in run
yielded = self.gen.throw/*exc_info/ # type: ignore
File "/anaconda3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
kernel_id = yield self.start_kernel_for_session/session_id, path, name, type, kernel_name/
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result//
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 736, in run
yielded = self.gen.throw/*exc_info/ # type: ignore
File "/anaconda3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel/path=kernel_path, kernel_name=kernel_name/
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result//
File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
yielded = next/result/
File "/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py", line 160, in start_kernel
super/MappingKernelManager, self/.start_kernel/**kwargs/
File "/anaconda3/lib/python3.7/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel/**kwargs/
File "/anaconda3/lib/python3.7/site-packages/jupyter_client/manager.py", line 259, in start_kernel
**kw/
File "/anaconda3/lib/python3.7/site-packages/jupyter_client/manager.py", line 204, in _launch_kernel
return launch_kernel/kernel_cmd, **kw/
File "/anaconda3/lib/python3.7/site-packages/jupyter_client/launcher.py", line 138, in launch_kernel
proc = Popen/cmd, **kwargs/
File "/anaconda3/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session/
File "/anaconda3/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type/errno_num, err_msg, err_filename/
FileNotFoundError: [Errno 2] No such file or directory: '/Users/myhomefolder/anaconda/envs/ipykernel_py3/bin/python': '/Users/myhomefolder/anaconda/envs/ipykernel_py3/bin/python'
已邀请:

小明明

赞同来自:

解决方案是执行以下命令 terminal:


python -m ipykernel install --user

,

如我想的那样 kernel. 我找到了下一篇文章的解决方案 GitHub,
https://github.com/jupyter/notebook/issues/2301
.

我不知道是否是最完整的解决方案,以避免将来存在此类问题,但现在它似乎有效。 如果有人有其他建议,我当然会很高兴听到他们。

要回复问题请先登录注册