Matplotlib install failure on Mac OSX 10.8 Mountain Lion

前端 未结 11 1045
眼角桃花
眼角桃花 2020-12-23 02:21

I tried to install matplotlib on my MacBook Air, but it always gives me this error message:

 Processing matplotlib-1.1.1_notests.tar.gz
 Running matplotlib-1         


        
11条回答
  •  悲&欢浪女
    2020-12-23 03:03

    I am using MacOs 10.8 too, and I encountered the same problem regarding not finding ft2build.h header when I tried to install matplotlib, what I l did to resolve the reported issue is :

    1) replacing "ft2build.h" in the following call within the file "setupext.py" :

                                     return self._check_for_pkg_config('freetype2', 
                                     'ft2build.h',
                                      min_version='2.4', 
                                      version=version)
    

    by the complete path to the ft2build.h header, in my case :

                                    return self._check_for_pkg_config('freetype2', 
                                   '/usr/local/Cellar/freetype/2.5.2/include/freetype2/ft2build.h',
                                    min_version='2.4', 
                                    version=version)
    

提交回复
热议问题