Matplotlib Version

前端 未结 5 979
刺人心
刺人心 2021-01-03 22:21

Having my system prepped with homebrew and using pip install matplotlib after successful installation of numpy and scipy, I\'m getting a successful installation

5条回答
  •  被撕碎了的回忆
    2021-01-03 23:01

    Using Matplotlib in OSX can give you problems. In this page, they say:

    The build situation on OSX is complicated by the various places one can get the libpng and freetype requirements (darwinports, fink, /usr/X11R6) and the different architectures (e.g., x86, ppc, universal) and the different OSX version (e.g., 10.4 and 10.5).

    In the official page of Matplotlib they recommend to use the mkpg installer:

    The mkpg installer will have a “zip” extension, and will have a name like matplotlib-1.2.0-py2.7-macosx10.5_mpkg.zip. The name of the installer depends on which versions of python, matplotlib, and OSX it was built for. [...] install to a directory like /Library/Python/2.7/site-packages/ (exact path depends on your python version).

    In the OSX-Notes Section you have more information about this installing.

    Edited:

    I haven't found any MPKG but you can use this DMG.

提交回复
热议问题