1
0

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.

matplotlib.pypltをimportできない。(Kernel Restarting)

Last updated at Posted at 2021-02-06

jupyter labで、matplotlib.pypltのimportでエラー

import matplotlib.pyplot as plt

Kernel RestartingThe kernel ~/*******.ipynb appears to have died.
It will restart automatically.

結論、とにかくmatplotlibを再インストールすれば直る

% pip uninstall matplotlib
% pip install matplotlib

エラーの概要

juypterのkernelエラーでは、よく分からないので、ターミナルにてpythonでimportを試みる。
segmentation faultということが分かる。
pythonは裏ではC言語が動いているので、C言語で言うところのセグフォが原因。
segmentation faultとは、
OSがメモリを割り振っていない処理を実行しようとした時に、OSがプログラムをストップしにくるエラー。
だから、jupyterのエラーにkernelがどうこうでていた。

% python
:
>>> import matplotlib.pyplot as plt
zsh: segmentation fault  python

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?