Skip to content

Instantly share code, notes, and snippets.

@jarpy
Last active September 27, 2022 22:05
Show Gist options
  • Save jarpy/571b21864cc25e071521757f11dd4f01 to your computer and use it in GitHub Desktop.
Save jarpy/571b21864cc25e071521757f11dd4f01 to your computer and use it in GitHub Desktop.
Install Pyo on ARM (M1) Mac
#!/bin/bash
# These libraries are required when compiling the C extension for Pyo.
libs=(liblo libsndfile portaudio portmidi)
# Let the C compiler know where to find the headers and library files.
CFLAGS=""
for lib in "${libs[@]}"; do
CFLAGS+="-I/opt/homebrew/opt/${lib}/include -L/opt/homebrew/opt/${lib}/lib "
done
export CFLAGS
# Now Pyo will be able to compile.
pip install pyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment