Ubuntu 16.04 install python-matplotlib 2.0.0

I'm wondering is it possible to use

sudo apt-get install python-matplotlib

to get a matplotlib version 2.0.0 or 2.1.0?

I tried

sudo apt-get install python-matplotlib=2.0.0

is not working. It seems I can only get 1.5.1 version.

Could any one give some suggestion? I don't wanna use pip to install library,because last time I met a mixinstall problem...

Thank in advance!

1

2 Answers

Before you start - do not forget to remove python-matplotlib with
sudo apt-get purge python-matplotlib.

Then you may try to install matplotlib-2.1.0 with pip:

  • sudo pip install matplotlib (for python2.7)
  • sudo pip3 install matplotlib (for python3.5).
1

I couldn't install matplotlib on my ubuntu 16.04 using python 3.5 (ImportError: No module named '_tkinter').

Then after using python 3.6.4 everything worked well.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like