pytorch / pytorch/executorch

Unable to run install_executorch.sh on macOS

Open
#11,427 10 comments 0 reactions 2 assignees View on GitHub

@jerryzh168 is already working on this.

Since Jun 5, 2025.

Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🐛 Describe the bug

Error:

      subprocess.CalledProcessError: Command '['cmake', '/Users/guangyang/executorch/third-party/ao/torchao/experimental', '-DCMAKE_BUILD_TYPE=Release', '-DTORCHAO_BUILD_CPU_AARCH64=ON', '-DTORCHAO_BUILD_KLEIDIAI=OFF', '-DTORCHAO_BUILD_MPS_OPS=OFF', '-DTORCHAO_ENABLE_ARM_NEON_DOT=ON', '-DTORCHAO_ENABLE_ARM_I8MM=OFF', '-DTORCHAO_PARALLEL_BACKEND=aten_openmp', '-DTorch_DIR=/Users/guangyang/miniconda3/envs/huggingface/lib/python3.11/site-packages/torch/share/cmake/Torch', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/guangyang/executorch/third-party/ao/build/lib.macosx-11.1-arm64-cpython-311/torchao']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for torchao
  Running setup.py clean for torchao
  Building wheel for pytorch_tokenizers (pyproject.toml) ... done
  Created wheel for pytorch_tokenizers: filename=pytorch_tokenizers-0.1.0-py3-none-any.whl size=10999 sha256=4877a5067703eea4fd6ab375323bf014e94fd0a79f0ed81095c917c9a0eabca2
  Stored in directory: /private/var/folders/vv/rw9_1tk505j9kdt1myl1_bgw0000gn/T/pip-ephem-wheel-cache-7lvqur48/wheels/3d/2e/ef/aca2e802702b0ee7992512f008982f7b35790311d6fed14e81
Successfully built pytorch_tokenizers
Failed to build torchao
ERROR: Failed to build installable wheels for some pyproject.toml based projects (torchao)
Versions

Collecting environment information...
PyTorch version: 2.8.0.dev20250601
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 15.5 (arm64)
GCC version: Could not collect
Clang version: 17.0.0 (clang-1700.0.13.5)
CMake version: version 3.31.6
Libc version: N/A

Python version: 3.11.11 (main, Dec 11 2024, 10:25:04) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-15.5-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M1 Max

Versions of relevant libraries:
[pip3] executorch==0.6.0
[pip3] mypy_extensions==1.1.0
[pip3] numpy==2.2.6
[pip3] optimum-executorch==0.0.0.dev0
[pip3] torch==2.8.0.dev20250601
[pip3] torchaudio==2.8.0.dev20250601
[pip3] torchdata==0.11.0
[pip3] torchsr==1.0.4
[pip3] torchtune==0.6.1
[pip3] torchvision==0.23.0.dev20250601
[conda] executorch 0.6.0 pypi_0 pypi
[conda] numpy 2.2.6 pypi_0 pypi
[conda] optimum-executorch 0.0.0.dev0 pypi_0 pypi
[conda] torch 2.8.0.dev20250601 pypi_0 pypi
[conda] torchaudio 2.8.0.dev20250601 pypi_0 pypi
[conda] torchdata 0.11.0 pypi_0 pypi
[conda] torchsr 1.0.4 pypi_0 pypi
[conda] torchtune 0.6.1 pypi_0 pypi
[conda] torchvision 0.23.0.dev20250601 pypi_0 pypi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.