PyYAMLのインストールエラー
Object Detection APIのセットアップでも発生していて、解消法を探すのに少し手間取ったためメモしておきます。
PyYAMLのインストールエラー
Collecting PyYAML==5.4.1
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 5.0 MB/s eta 0:00:00
Installing build dependencies ... done
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.
Getting requirements to build wheel ... error
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.
対処としてオプションを付与
pip install PyYAML==5.4.1 --no-build-isolation
オプションの説明