LoginSignup
0
0

More than 3 years have passed since last update.

Windowsでmatplotlibをインストールしようとするとエラーが出るとき

Posted at

環境

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++は不要。

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