Building wheels for collected packages: google-crc32c
Building wheel for google-crc32c (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py build_wheel /tmp/tmpa_qqgxr3
cwd: /tmp/pip-install-i8dfak3j/google-crc32c
Complete output (18 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/google_crc32c
copying src/google_crc32c/_checksum.py -> build/lib.linux-x86_64-3.8/google_crc32c
copying src/google_crc32c/__config__.py -> build/lib.linux-x86_64-3.8/google_crc32c
copying src/google_crc32c/__init__.py -> build/lib.linux-x86_64-3.8/google_crc32c
copying src/google_crc32c/cext.py -> build/lib.linux-x86_64-3.8/google_crc32c
copying src/google_crc32c/python.py -> build/lib.linux-x86_64-3.8/google_crc32c
running build_ext
building 'google_crc32c._crc32c' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
creating build/temp.linux-x86_64-3.8/src/google_crc32c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.8 -c src/google_crc32c/_crc32c.c -o build/temp.linux-x86_64-3.8/src/google_crc32c/_crc32c.o
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for google-crc32c
となったり
#10 1190.0 [pipenv.exceptions.InstallError]: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.8 -c src/google_crc32c/_crc32c.c -o build/temp.linux-x86_64-3.8/src/google_crc32c/_crc32c.o
#10 1190.0 [pipenv.exceptions.InstallError]: src/google_crc32c/_crc32c.c:3:10: fatal error: crc32c/crc32c.h: No such file or directory
#10 1190.0 [pipenv.exceptions.InstallError]: 3 | #include <crc32c/crc32c.h>
#10 1190.0 [pipenv.exceptions.InstallError]: | ^~~~~~~~~~~~~~~~~
#10 1190.0 [pipenv.exceptions.InstallError]: compilation terminated.
#10 1190.0 [pipenv.exceptions.InstallError]: error: command 'gcc' failed with exit status 1
となる場合。
環境変数 CRC32C_PURE_PYTHON=1 を設定すると良い