LoginSignup
10
1

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
10
1