본문 바로가기

IT/Python

[Matplotlib] findfont: Font family 'Arial' not found.

리눅스에서는 기본적인 MS 에서 사용한 Arial 같은 폰트가 없다.

 

해당 부분을 설치해준다.

 

$ sudo apt install msttcorefonts -qq
$ rm ~/.cache/matplotlib -rf

 

Jupyter 재시작하고 다시 코드 실행

 

출처: python - Matplotlib cannot find basic fonts - Stack Overflow