Skip to content

Commit e0f66d0

Browse files
committed
Error out on intel mac
1 parent 2601b2a commit e0f66d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install_requirements.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ def python_is_compatible():
6363

6464

6565
def install_requirements():
66+
# Error out on Intel macOS.
67+
if is_intel_mac_os():
68+
print(
69+
"ERROR: Prebuilt PyTorch wheels are no longer available for Intel-based macOS.\n"
70+
"Please build from source by following https://docs.pytorch.org/executorch/main/using-executorch-building-from-source.html",
71+
file=sys.stderr,
72+
)
73+
sys.exit(1)
6674

6775
# pip packages needed by exir.
6876
TORCH_PACKAGE = [

0 commit comments

Comments
 (0)