Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rencryptofish/326097ecd72492050efade46dc3ed1f4 to your computer and use it in GitHub Desktop.
Save rencryptofish/326097ecd72492050efade46dc3ed1f4 to your computer and use it in GitHub Desktop.
Using python 3.9 with m1 macs for scientific computing
As of June 27, 2021 a lot of standard python packages haven't migrated their underlying numerical libraries to arm from intel. These are some steps you need to take in order to install standard packages such as
- pandas
- numpy
- scipy
etc...
Upgrade setuptools / wheel for building packages (if you haven't)
`pip install --upgrade pip setuptools wheel`
Install blas
`brew install blas`
Point to blas when installing numerical packages (for example):
`OPENBLAS="$(brew --prefix openblas)" pip install numpy --no-use-pep517`
`OPENBLAS="$(brew --prefix openblas)" pip install scipy --no-use-pep517`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment