ubuntu 14.04, pip cannot upgrade matplotllib

后端 未结 9 1229
一个人的身影
一个人的身影 2020-11-29 00:49

When I try to upgrade my matplotlib using pip, it outputs:

Downloading/unpacking matplotlib from https://pypi.python         


        
相关标签:
9条回答
  • I was trying too update directly using sudo pip but changes are not saved in last. So i first use update cmd in terminal:

    sudo apt-get update
    

    then i used sudo install:

    sudo apt-get install libffi-dev
    

    Finally its installed by doing this method.

    0 讨论(0)
  • 2020-11-29 01:30

    This worked for me:

    python -m pip install -U pip setuptools
    python -m pip install matplotlib
    

    For more details, follow : https://matplotlib.org/2.0.0/users/installing.html

    0 讨论(0)
  • 2020-11-29 01:32

    I had the same issues trying to install matplotlib on Python 3 using pip3, and it seems that this problem is related to a bare-bones installation of Python 3, and doing a:

    sudo apt-get build-dep matplotlib
    

    followed by

    sudo pip3 install matplotlib 
    

    is probably a better solution than selectively installing only the libraries related to matplotlib.

    0 讨论(0)
  • 2020-11-29 01:35

    On Ubuntu 14 server, you also need to install libxft-dev

    sudo apt-get install libfreetype6-dev libxft-dev
    
    0 讨论(0)
  • 2020-11-29 01:39

    Since mac doesn't have apt-get you, on OSX you may need to do:

    brew install freetype
    

    then you can run:

    pip install matplotlib
    
    0 讨论(0)
  • 2020-11-29 01:39

    For those on Fedora 25 hitting this thread, I needed these two packages to make it work:

    sudo dnf install freetype-devel gcc-c++
    
    0 讨论(0)
提交回复
热议问题