pip3が使えなくて困った
この記事で,pip3をインストールして使うところがあったのだが,なんかエラーが発生した困った.
ちょっと煩雑になりそうな予感がしたので別の記事に分けた.
実行して出てきたエラーはこれ(途中の長いところは省いてる).
MacBook-Air ~ % pip3 install synthesizer
Defaulting to user installation because normal site-packages is not writeable
Collecting synthesizer
Downloading synthesizer-0.2.0.tar.gz (5.4 kB)
Preparing metadata (setup.py) ... done
Collecting enum34>=1.1.6
Downloading enum34-1.1.10-py3-none-any.whl (11 kB)
Collecting numpy>=1.13.3
Downloading numpy-1.23.3-cp38-cp38-macosx_11_0_arm64.whl (13.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.3/13.3 MB 7.1 MB/s eta 0:00:00
Collecting scipy>=0.19.1
Downloading scipy-1.9.1.tar.gz (42.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.0/42.0 MB 5.2 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [61 lines of output]
The Meson build system
Version: 0.62.2
Source dir: /private/var/folders/d9/bmytbwsn2yjdxh_zrh3b9z380000gn/T/pip-install-rjf8ipbr/scipy_4091f25fb7524e049fd97eb02a3c8294
Build dir:
.
.
.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
でも,原因は意外と簡単なもので,ただのmacOSのバージョンが足らなかったってことらしい.
Apple Silicon向けのビルド済みバイナリはmacOS ver.12以上のものしか提供されていなかったのに,最初やってたときのver.は11.5.1だった.
Contributorが明確に
we only provide wheels for Monterey on M1
と述べていました.
この記事が気に入ったらサポートをしてみませんか?