LoginSignup
5
0

More than 1 year has passed since last update.

【Windows】Pythonで「findfont: Font family 'IPAexGothic' not found.」が表示された際の対処法

Last updated at Posted at 2022-11-23

事象

pythonでmatplotlibを使用してグラフを表示しようとしたら以下のメッセージが出力された

findfont: Font family 'IPAexGothic' not found.

環境

項目 情報
OS Windows 10
Python 3.9.13
matplotlib 3.6.2

原因

IPAexゴシックがインストールされていない

対処方法

以下3つの手順を実施

1. フォントのダウンロード

フォントを以下サイトからダウンロード

IPAexゴシックが入っているzipファイルをダウンロードしてください。

2. フォントのインストール

ダウンロードしたzipファイルを解凍して、「ipaexg.ttf」ファイルをダブルクリックして、インストールボタンをクリック

↓こんな画面が表示されるはず
image.png

3. キャッシュファイルの削除

ユーザフォルダ配下の「.matplotlib」フォルダを空にします。
これをやらないと、新しくインストールしたフォントが読み込まれません。

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