Matplotlib 1.3.1 to 1.4.2 in ubuntu 14.04 : Différence entre versions

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher
(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...")
 
 
(Une révision intermédiaire par le même utilisateur non affichée)
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
 
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
 
  # Upgrade to matplotlib 1.4 using PIP
 
  sudo pip install --upgrade matplotlib
 
  sudo pip install --upgrade matplotlib

Version actuelle datée du 16 d'octobre 2015 à 12:35

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)
# Upgrade to matplotlib 1.4 using PIP
sudo pip install --upgrade matplotlib