Pip install Matplotlib error with virtualenv

后端 未结 11 731
心在旅途
心在旅途 2020-11-29 15:58

I am trying to install matplotlib in a new virtualenv.

When I do:

pip install matplotlib

or

pip install http://so         


        
11条回答
  •  时光取名叫无心
    2020-11-29 16:16

    Building Matplotlib requires libpng (and freetype, as well) which isn't a python library, so pip doesn't handle installing it (or freetype).

    You'll need to install something along the lines of libpng-devel and freetype-devel (or whatever the equivalent is for your OS).

    See the building requirements/instructions for matplotlib.

提交回复
热议问题