環境
Windows 10 64bit
公式から落としたWindows x86-64 MSI installerでインストールした Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 を利用
状況
py -m pip install matplotlibすると、
error: Microsoft Visual C++ 14.0 is required というエラーが出る。
VC++をインストールしたら、 cannot open include file 'ft2build.h' no such file or directory というエラーに変わるが依然としてインストールできない。
対処法
https://stackoverflow.com/questions/58693012/installing-matplotlib-on-windows-error-cannot-open-include-file-ft2build-h を参考に、https://www.lfd.uci.edu/~gohlke/pythonlibs から非公式のバイナリ?をダウンロード。
ダウンロードしたのは matplotlibmatplotlib‑3.2.0rc2‑cp38‑cp38‑win_amd64.whl というファイル。
py -m pip install matplotlibmatplotlib‑3.2.0rc2‑cp38‑cp38‑win_amd64.whl
でインストールできる。
試してないが、たぶんこの方法ならVC++は不要。