Created
June 28, 2021 04:42
-
-
Save rencryptofish/326097ecd72492050efade46dc3ed1f4 to your computer and use it in GitHub Desktop.
Using python 3.9 with m1 macs for scientific computing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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