Mac 安装matplotlibb 报错

macdeMacBook-Pro:~ mac$ python -mpip install -U pip
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip

-U pip 这个不需要吧,用以下命令行:

$ python -m pip install matplotlib

使用下面的命令:

sudo easy_install pip

然后安装matplotlib

pip install matplotlib