Install matplotlib for Python 3 in Ubuntu 11.10

- 121 palabras - 1 minuto(s) tiempo de lectura

Ubuntu 11.10 Oneiric has the package python-matplotlib that supports Python 2.  Below are the steps I followed to install matplotlib for Python 3 from the latest sources.  First numpy is installed for Python 3, which is a requirement for matplotlib.  The –user option used below is for installing under .local/ in the home directory, so you don’t have to be root.

cd downloads
git clone git:// numpy
cd numpy/
python3 install --user
cd ..
git clone
cd matplotlib/
python3 install --user

Both install commands take some minutes to complete while sources are compiled, be patient.  To test the install, you may try these two commands, they should execute without errors:

python3 -c 'import numpy'
python3 -c 'import matplotlib'