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

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

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest