2015-12-03 35 views
6

私はPythonのバージョンを3.4から3.5(Mac El Capitanで)に更新したときにJupyterを再インストールしましたが、実行して新しいPython 3ノートブックを作成するとすぐにカーネルエラーと、私はこれをクリックした場合、私は、このエラーメッセージが表示されます:JupyterノートブックがPython 3.5で壊れた

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へのアップグレードは、パッケージが異なる場所に設置されることを意味していることを理解し、私はうまくできません私がすでにpy3をインストールしたときにPython 3.5パッケージで何を探しているのですか?(そして何回かアンインストール/再インストールしています)。誰かがこれについての修正を知っていますか?

答えて

8

あなたのPython 3.4を指しているIPythonのための残りのkernelspecがあります。あなたがやったと私は同じ問題に遭遇した

ipython kernelspec install [--user] 
+0

ありがとうございます:)すべて今修正! –

0

で新しいIPython kernelspecをインストールすることができます

jupyter kernelspec list 

: あなたは既存のkernelspecsを見ることができます。私はpython 3をアンインストールし、それを再インストールしました。

次に入力します。

pip3 install jupyter ipython 

をこれは私にjupyterのノートブックへのアクセスを与えたが、カーネルエラーが残っていました。次に、私は入力しました:

python -m ipykernel install --user 

それは私の問題を解決しました。

関連する問題