【发布时间】:2015-12-03 09:41:46
【问题描述】:
当我将 Python 版本从 3.4 更新到 3.5(在 Mac El Capitan 上)时,我重新安装了 Jupyter,但是当我运行它并创建一个新的 Python 3 笔记本时,它立即告诉我存在内核错误,如果我点击这个,然后我得到这个错误信息:
Traceback (most recent call last): File
"/usr/local/lib/python3.5/site-packages/notebook/base/handlers.py",
line 436, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs)) File
"/usr/local/lib/python3.5/site-packages/notebook/services/sessions/handlers.py",
line 56, in post
model = sm.create_session(path=path, kernel_name=kernel_name) File
"/usr/local/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py",
line 66, in create_session
kernel_name=kernel_name) File "/usr/local/lib/python3.5/site-packages/notebook/services/kernels/kernelmanager.py",
line 84, in start_kernel
**kwargs) File "/usr/local/lib/python3.5/site-packages/jupyter_client/multikernelmanager.py",
line 109, in start_kernel
km.start_kernel(**kwargs) File "/usr/local/lib/python3.5/site-packages/jupyter_client/manager.py",
line 244, in start_kernel
**kw) File "/usr/local/lib/python3.5/site-packages/jupyter_client/manager.py",
line 190, in _launch_kernel
return launch_kernel(kernel_cmd, **kw) File "/usr/local/lib/python3.5/site-packages/jupyter_client/launcher.py",
line 123, in launch_kernel
proc = Popen(cmd, **kwargs) File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 950, in __init__
restore_signals, start_new_session) File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py",
line 1540, in _execute_child
raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory:
'/usr/local/opt/python3/bin/python3.4'
我知道从 3.4 升级到 3.5 意味着软件包将安装在不同的地方,但是当我已经再次运行 pip3 install jupyter 时,我无法弄清楚它在 Python 3.5 软件包中寻找什么(并且一直多次卸载/重新安装)。有谁知道解决这个问题?
【问题讨论】:
标签: python python-3.x ipython ipython-notebook jupyter