且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

M1 Mac 上的 Pip 安装 matplotlib 失败

更新时间:2023-01-11 11:24:21

python3 -m pip install cython   
python3 -m pip install --no-binary :all: --no-use-pep517 numpy
brew install libjpeg
python3 -m pip install matplotlib

为我工作,此时它安装了numpy 1.20.1.

Worked for me, at this time it installed numpy 1.20.1.

Homebrew的Python版本相同(3.9.1).

Same Python version (3.9.1) from Homebrew.