pyenvが使えるようになったので、python 3.8.6をインストールした。
blog.hayashikun.com
いつもどおりnumpy
やらscipy
やらmatplotlib
などをインストールしていたら、matplotlib
のインストール中にエラーが起きた。
原因はnumpy
が使える状態になっていなくて、この状態でimport numpy
をすると、
Python 3.8.6 (default, Nov 14 2020, 10:49:48)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Python(46878,0x10ae1be00) malloc: can't allocate region
:*** mach_vm_map(size=18446744071929176064, flags: 100) failed (error code=3)
Python(46878,0x10ae1be00) malloc: *** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
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
とエラーが出た。
続きを読む