Matplotlib 1.3.1 to 1.4.2 in ubuntu 14.04 : Différence entre versions
(Created page with "'''UPGRADING FROM MATPLOTLIB 1.3.1 TO 1.4.2 IN UBUNTU 14.04''' The preferred method for installing matplotlib is to use the default package manager for you system. In Ubuntu th...") |
|||
Ligne 2: | Ligne 2: | ||
The preferred method for installing matplotlib is to use the default package manager for you system. In Ubuntu the default package manager is APT and can be used to install packages in the following way: | The preferred method for installing matplotlib is to use the default package manager for you system. In Ubuntu the default package manager is APT and can be used to install packages in the following way: | ||
+ | |||
+ | sudo apt-get install build-essential | ||
+ | sudo apt-get install python-pip | ||
+ | sudo apt-get install libfreetype6-dev libxft-dev | ||
sudo apt-get install python-matplotlib | sudo apt-get install python-matplotlib | ||
This method however failed to upgrade to the newest version so I attempted to upgrade using the python package manager (PIP) | This method however failed to upgrade to the newest version so I attempted to upgrade using the python package manager (PIP) | ||
+ | |||
+ | |||
sudo pip install --upgrade matplotlib | sudo pip install --upgrade matplotlib | ||
This also failed, finally after some digging I came across this page in which they confirm that a bug is the reason PIP is failing and that a workaround can be found by installing libreetype6-dev | This also failed, finally after some digging I came across this page in which they confirm that a bug is the reason PIP is failing and that a workaround can be found by installing libreetype6-dev | ||
+ | |||
# Install libfreetype6-dev | # Install libfreetype6-dev |
Version depuis le 16 d'octobre 2015 à 12:34
UPGRADING FROM MATPLOTLIB 1.3.1 TO 1.4.2 IN UBUNTU 14.04
The preferred method for installing matplotlib is to use the default package manager for you system. In Ubuntu the default package manager is APT and can be used to install packages in the following way:
sudo apt-get install build-essential sudo apt-get install python-pip sudo apt-get install libfreetype6-dev libxft-dev
sudo apt-get install python-matplotlib This method however failed to upgrade to the newest version so I attempted to upgrade using the python package manager (PIP)
sudo pip install --upgrade matplotlib This also failed, finally after some digging I came across this page in which they confirm that a bug is the reason PIP is failing and that a workaround can be found by installing libreetype6-dev
# Install libfreetype6-dev sudo apt-get install libfreetype6-dev
# Upgrade to matplotlib 1.4 using PIP sudo pip install --upgrade matplotlib