title: How to fix Poetry architecture issues
permalink: how-to-fix-poetry-arch
tags:
- poetry
- python
- macos
You may have x86_64 packages but need arm64 versions on Apple Silicon (M1/M2/M3).
Check your machine's architecture.
arch
If it shows arm64
, run these commands:
# Remove existing environment
rm -rf .venv
# Create new environment with native architecture
arch -arm64 poetry env use python
# Reinstall all dependencies
poetry install
Now you may add affected packages, like cryptography
.
poetry add cryptography