Matplotlib Version

前端 未结 5 1113
刺人心
刺人心 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 22:59

    If you install yolk, you can see with

    yolk -V matplotlib 
    

    that version 1.3.1 of matplotlib is available. But pip won't let you install it because it is managed externally. The solution is to do:

    pip install -Iv https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.1/matplotlib-1.3.1.tar.gz 
    

    At first it didn't work for me though because of a problem with true type fonts. but I just had to google for the error message to find the solution on stackoverflow, which is to do the following before installing matplotlib:

    ln -s /usr/local/opt/freetype/include/freetype2 /usr/local/include/freetype 
    

提交回复
热议问题