LoginSignup
7
5

More than 3 years have passed since last update.

matplotlibインストール時のpolyfitエラー

Last updated at Posted at 2020-11-20

matplotlibインストール時にエラーが出た

OSはMacOS BigSur。
python versionは3.6.10。
何も考えずに「numpy, pandas, matplotlib」をインストールしようとしたら、下記エラーが出た。

pip install matplotlib

RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned

    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

対処法

インストールされたnumpyのバージョンが新しすぎる。らしい。
1.18を入れると動く。

pip install numpy==1.18
pip install matplotlib
7
5
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
7
5