---
slug: "pipenv-lock-failed-on-m1-mac"
title: "When pipenv lock Fails on M1 Mac"
description: "Fix `pipenv lock` failures on M1 (Apple Silicon) Macs — wheels for `grpcio` / `cryptography` may not exist on arm64, so use Rosetta or pin compatible versions."
url: "https://www.ytyng.com/en/blog/pipenv-lock-failed-on-m1-mac"
publish_date: "2022-01-03T11:15:04Z"
created: "2022-01-03T11:15:04Z"
updated: "2026-05-11T13:12:25.738Z"
categories: ["Python", "mac"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/5b8c23036c1d4f65833406db68fc3466.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# When pipenv lock Fails on M1 Mac

<p>On an Intel Mac, <code>pipenv lock</code> generates the lock file without any issues, but on an M1 (Apple Silicon) (ARM) Mac, an error occurs, and the lock file cannot be created.</p>
<pre>arch -x86_64 zsh</pre>
<p>By executing this command to emulate x86_64 on Rosetta and then running pipenv lock, it worked successfully.</p>
