Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

10
1

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 3 years have passed since last update.

jupyter notebook使用時に「The kernel appears to have died. It will restart automatically.」というエラーが出た時の対処

Last updated at Posted at 2021-02-27

エラーが出た状況

環境

macOS Big Sur 11.2
Python 3.7.3
numpy-1.16.2
pandas-0.24.2
matplotlib-3.0.3
Pillow-5.4.1

ソースコード

Kaggleのコンペの問題に取り組む為にjupyter notebookを起動し、必要なライブラリのインポートのために以下のコードを実行しました。

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline

すると、以下のエラーが発生してしまいました。

The kernel appears to have died. It will restart automatically.

コードセルの In[] の部分は In[*] となっているため、正常に実行できていない様子。

対処

各ライブラリのバージョンをアップグレードすることで、エラーが解消しました。

numpyのアップグレード

pip install --upgrade numpy

pandasのアップグレード

pip install --upgrade pandas

matplotlibのアップグレード

pip install --upgrade matplotlib

エラーが解消した時の各ライブラリのバージョン

numpy-1.20.1
pandas-1.2.2
matplotlib-3.3.4
Pillow-8.1.0

10
1
2

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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
10
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?