首先请安装好 Homebrew,然后:
brew tap homebrew/science
brew install suite-sparse
然后以下包均可安装:
pip3 install cvxopt
pip3 install nose
pip3 install numpy
pip3 install scipy
brew install libpng
brew install freetype
pip3 install matplotlib
# MPI
brew install openmpi
pip3 install mpi4py
# FFTW
brew install fftw --with-mpi
# HDF5
brew install hdf5
pip3 install h5py
还是很方便的。解决方案来自 Dedalus Project Docs