After conda update, python kernel crashes when matplotlib is used
I have create this simple env with conda: conda create -n test python=3.8.5 pandas scipy numpy matplotlib seaborn jupyterlab The following code in jupyter lab crashes the kernel : import matplotlib.
stackoverflow.com
freetype 버전 때문에 발생하는 오류로, 다운그레이드 해줌으로서 해결할 수 있다.
conda install freetype=2.10.4
(+ 나는 특히 "seaborn"라이브러리를 사용하여 그래프를 그리는 경우에만 오류가 발생했는데 이 경우에는 위의 방법대로 다운그레이드를 해도 해결되지 않았지만, 다음 2가지 방법을 참고하여 해결할 수 있었다.)
1. nomkl 설치
https://superuser.com/questions/1406008/jupyter-kernel-dies-when-attempting-a-simple-plot-python
Jupyter Kernel Dies when Attempting a Simple Plot (Python)
My Jupyter Notebook cannot even draw a simple plot anymore. Until yesterday, it could plot all kinds of plots of matplotlib and seaborn. It is not a memory error because there are 1.6 GB available....
superuser.com
conda install nomkl
2. ipython 업데이트
conda update ipython