---
slug: "alpine-python-google-crc32c-113-error"
title: "How to Resolve Errors When Installing google-crc32c Version 1.1.3 or Higher on Alpine with Python"
description: "When installing `google-crc32c` ≥1.1.3 on Alpine Linux fails to build, work around it by setting CFLAGS to enable SSE4.2 explicitly."
url: "https://www.ytyng.com/en/blog/alpine-python-google-crc32c-113-error"
publish_date: "2021-11-08T05:52:39Z"
created: "2021-11-08T05:52:39Z"
updated: "2026-05-11T13:12:37.141Z"
categories: ["Python"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/2e25aa463962454f8531a05def7125e4.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# How to Resolve Errors When Installing google-crc32c Version 1.1.3 or Higher on Alpine with Python

<pre>Building wheels for collected packages: google-crc32c<br /> Building wheel for google-crc32c (PEP 517) ... error<br /> ERROR: Command errored out with exit status 1:<br /> command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py build_wheel /tmp/tmpa_qqgxr3<br /> cwd: /tmp/pip-install-i8dfak3j/google-crc32c<br /> Complete output (18 lines):<br /> running bdist_wheel<br /> running build<br /> running build_py<br /> creating build<br /> creating build/lib.linux-x86_64-3.8<br /> creating build/lib.linux-x86_64-3.8/google_crc32c<br /> copying src/google_crc32c/_checksum.py -> build/lib.linux-x86_64-3.8/google_crc32c<br /> copying src/google_crc32c/__config__.py -> build/lib.linux-x86_64-3.8/google_crc32c<br /> copying src/google_crc32c/__init__.py -> build/lib.linux-x86_64-3.8/google_crc32c<br /> copying src/google_crc32c/cext.py -> build/lib.linux-x86_64-3.8/google_crc32c<br /> copying src/google_crc32c/python.py -> build/lib.linux-x86_64-3.8/google_crc32c<br /> running build_ext<br /> building 'google_crc32c._crc32c' extension<br /> creating build/temp.linux-x86_64-3.8<br /> creating build/temp.linux-x86_64-3.8/src<br /> creating build/temp.linux-x86_64-3.8/src/google_crc32c<br /> 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<br /> error: command 'gcc' failed with exit status 1<br /> ----------------------------------------<br /> ERROR: Failed building wheel for google-crc32c</pre>
<p>or</p>
<pre>#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<br />#10 1190.0 [pipenv.exceptions.InstallError]: src/google_crc32c/_crc32c.c:3:10: fatal error: crc32c/crc32c.h: No such file or directory<br />#10 1190.0 [pipenv.exceptions.InstallError]: 3 | #include <crc32c/crc32c.h><br />#10 1190.0 [pipenv.exceptions.InstallError]: | ^~~~~~~~~~~~~~~~~<br />#10 1190.0 [pipenv.exceptions.InstallError]: compilation terminated.<br />#10 1190.0 [pipenv.exceptions.InstallError]: error: command 'gcc' failed with exit status 1</pre>
<p>In such cases, setting the environment variable CRC32C_PURE_PYTHON=1 can be helpful.</p>
