2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pyenv + anaconda3でjupyter notebookを使ったときにNo module named ipykernel_launcherというエラーが出た場合の対処法

Last updated at Posted at 2017-07-25

$ pyenv local anaconda3-2.4.0でanaconda3をカレントディレクトリで有効化。
$ ipython notebookでjupyter notebookを起動したところ、以下のようなエラーが出ました。

[W 00:12:25.082 NotebookApp] Timeout waiting for kernel_info reply from 41fbb93f-01d7-49a6-bdf2-c78ad52a9364
[I 00:12:27.023 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 41fbb93f-01d7-49a6-bdf2-c78ad52a9364 restarted
/currentdir/anaconda3-2.4.0/bin/python: No module named ipykernel_launcher

ipykernel_lancherというのがないようなので、以下のコマンドでインストール。

$ conda install ipykernel

正常に動作するようになりました。

[I 00:49:53.062 NotebookApp] Kernel started: 77adaab9-d049-4d78-a602-b43a70c5b8f4
[I 00:49:54.652 NotebookApp] Adapting to protocol v5.1 for kernel 77adaab9-d049-4d78-a602-b43a70c5b8f4
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?