Skip to content

Instantly share code, notes, and snippets.

@iangow
Last active May 18, 2021 09:27
Show Gist options
  • Save iangow/2d9d95b52b2017f449c6204d418d8949 to your computer and use it in GitHub Desktop.
Save iangow/2d9d95b52b2017f449c6204d418d8949 to your computer and use it in GitHub Desktop.
Install numpy on M1 Mac

The following is what I needed to do to get Python going on my M1 Mac mini to the extent that I could run code from Chapter 2 of Introduction to Machine Learning with Python.

wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
bash Miniforge3-MacOSX-arm64.sh
conda install scipy matplotlib ipython scikit-learn pandas pillow
conda install -c conda-forge jupyterlab   

I also needed to get Graphviz installed. I have MacPorts installed, so I did this:

sudo port install graphviz
conda install graphviz

I have a library I use to get data. I installed this using pip.

pip install wrds2pg
@iangow
Copy link
Author

iangow commented Mar 13, 2021

Good catch. I forgot I had this gist when I was reinstalling Python today. So nice timing.

@iRonJ
Copy link

iRonJ commented Mar 13, 2021

This solved the problem I’ve been having for the past week, so I’m very grateful you decided to document this

@Photon9
Copy link

Photon9 commented Apr 4, 2021

thanks so much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment