Pip install Matplotlib error with virtualenv

后端 未结 11 730
心在旅途
心在旅途 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:14

    As I have struggled with this issue twice (even after fresh kubuntu 15.04 install) and installing freetype did not solve anything, I investigated further.

    The solution:
    From github issue:

    This bug only occurs if pkg-config is not installed;
    a simple
    sudo apt-get install pkg-config
    will shore up the include paths for now.

    After this installation proceeds smoothly.

提交回复
热议问题